mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Fixes 1 Bug and 8 Compiler Warnings (#10654)
* fixes: keys_map is initialized with itself [-Winit-self] * fixes: operation on repeats may be undefined [-Wsequence-point] * fixes: warning: suggest parentheses around && within || [-Wparentheses] * fixes: moving brim_points to itself [-Wself-move] * fixes: operation on unprintability may be undefined [-Wsequence-point] * fixes: extra tokens at end of #endif directive [-Wendif-labels] * fixes: converting to non-pointer type int from NULL [-Wconversion-null] * review result: simplifies fix 'operation on repeats may be undefined'
This commit is contained in:
committed by
GitHub
parent
8e84d21b7f
commit
aa8b8620da
@@ -167,7 +167,7 @@ double calculate_infill_rotation_angle(const PrintObject* object,
|
||||
idx = std::min(idx, (int) object->layers().size() - 1);
|
||||
limit_fill_z = object->get_layer(idx)->print_z + sdx * object->config().layer_height;
|
||||
}
|
||||
repeats = std::max(--repeats, 0);
|
||||
repeats = std::max(repeats - 1, 0);
|
||||
} else
|
||||
_noop = true; // set the dumb cycle
|
||||
if (_absolute) { // is absolute
|
||||
|
||||
Reference in New Issue
Block a user