diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-08-10 07:18:35 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-08-10 07:18:35 (GMT) |
commit | 8f2653820ec130969d1166ddc6d28ac4ecfc825c (patch) | |
tree | 512abb0f5912204f08d509e78c53459e5ea1a8b2 /primitives.cc | |
parent | cf190ff46ee1ce6ffa68ae932682b27438badc91 (diff) |
Clifford Wolf:
Fixed some trivial compiler warnings
git-svn-id: http://svn.clifford.at/openscad/trunk@87 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'primitives.cc')
-rw-r--r-- | primitives.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/primitives.cc b/primitives.cc index c08e0a1..f93755c 100644 --- a/primitives.cc +++ b/primitives.cc @@ -133,7 +133,7 @@ void register_builtin_primitives() int get_fragments_from_r(double r, double fn, double fs, double fa) { if (fn > 0.0) - return fn; + return (int)fn; return (int)ceil(fmax(fmin(360.0 / fa, r*M_PI / fs), 5)); } |