Skip to content

Commit a6f4682

Browse files
committed
Improved type fix
1 parent cacfeca commit a6f4682

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xcsg/xcsg_main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ bool xcsg_main::run_xsolid(cf_xmlNode& node,const std::string& xcsg_file)
118118
bool web_mode = m_cmd.count("web")>0;
119119
bool show_path = !web_mode;
120120

121-
int nbool = static_cast<int>(obj->nbool());
121+
size_t nbool = obj->nbool();
122122
cout << "...completed CSG tree: " << nbool << " boolean operations to process." << endl;
123123
if(nbool > m_cmd.max_bool()) {
124124
ostringstream sout;
@@ -135,7 +135,7 @@ bool xcsg_main::run_xsolid(cf_xmlNode& node,const std::string& xcsg_file)
135135
carve_boolean csg;
136136
try {
137137

138-
boolean_timer::singleton().init(nbool);
138+
boolean_timer::singleton().init(static_cast<int>(nbool));
139139
csg.compute(obj->create_carve_mesh(),carve::csg::CSG::OP::UNION);
140140
boost::posix_time::time_duration ptime_diff = boost::posix_time::microsec_clock::universal_time() - time_0;
141141
double elapsed_sec = 0.001*ptime_diff.total_milliseconds();
@@ -212,7 +212,7 @@ bool xcsg_main::run_xshape2d(cf_xmlNode& node,const std::string& xcsg_file)
212212
bool web_mode = m_cmd.count("web")>0;
213213
bool show_path = !web_mode;
214214

215-
int nbool = static_cast<int>(obj->nbool());
215+
size_t nbool = obj->nbool();
216216
cout << "...completed CSG tree: " << nbool << " boolean operations to process." << endl;
217217
if(nbool > m_cmd.max_bool()) {
218218
ostringstream sout;

0 commit comments

Comments
 (0)