diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-04 13:38:42 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-04 13:38:42 (GMT) |
commit | e725437a5a083ba5fa9e1c53af27f6e84027d656 (patch) | |
tree | 385c357c9a9612e3cbf4d01802d10d5750cc90f3 /src/csgtermnormalizer.cc | |
parent | cf3102f4fbea2985ff4d824776b36ea90e919b73 (diff) |
Use unsigned int for count
Diffstat (limited to 'src/csgtermnormalizer.cc')
-rw-r--r-- | src/csgtermnormalizer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/csgtermnormalizer.cc b/src/csgtermnormalizer.cc index b63ae05..0e7a759 100644 --- a/src/csgtermnormalizer.cc +++ b/src/csgtermnormalizer.cc @@ -15,7 +15,7 @@ shared_ptr<CSGTerm> CSGTermNormalizer::normalize(const shared_ptr<CSGTerm> &root if (temp == n) break; temp = n; - int num = count(temp); + unsigned int num = count(temp); #ifdef DEBUG PRINTB("Normalize count: %d\n", num); #endif @@ -148,7 +148,7 @@ bool CSGTermNormalizer::normalize_tail(shared_ptr<CSGTerm> &term) return false; } -int CSGTermNormalizer::count(const shared_ptr<CSGTerm> &term) const +unsigned int CSGTermNormalizer::count(const shared_ptr<CSGTerm> &term) const { if (!term) return 0; return term->type == CSGTerm::TYPE_PRIMITIVE ? 1 : 0 + count(term->left) + count(term->right); |