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 /dxflinextrude.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 'dxflinextrude.cc')
-rw-r--r-- | dxflinextrude.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dxflinextrude.cc b/dxflinextrude.cc index ef54aa3..4f2b0c4 100644 --- a/dxflinextrude.cc +++ b/dxflinextrude.cc @@ -78,7 +78,7 @@ AbstractNode *DxfLinearExtrudeModule::evaluate(const Context *ctx, const ModuleI node->filename = file.text; node->layername = layer.text; node->height = height.num; - node->convexity = convexity.num; + node->convexity = (int)convexity.num; origin.getv2(node->origin_x, node->origin_y); node->scale = scale.num; @@ -97,9 +97,9 @@ AbstractNode *DxfLinearExtrudeModule::evaluate(const Context *ctx, const ModuleI if (twist.type == Value::NUMBER) { node->twist = twist.num; if (slices.type == Value::NUMBER) { - node->slices = slices.num; + node->slices = (int)slices.num; } else { - node->slices = fmax(2, fabs(get_fragments_from_r(node->height, + node->slices = (int)fmax(2, fabs(get_fragments_from_r(node->height, node->fn, node->fs, node->fa) * node->twist / 360)); } node->has_twist = true; |