summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-rough-hatches.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-rough-hatches.cpp')
-rw-r--r--src/live_effects/lpe-rough-hatches.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-rough-hatches.cpp b/src/live_effects/lpe-rough-hatches.cpp
index 043296526..de40d4fb5 100644
--- a/src/live_effects/lpe-rough-hatches.cpp
+++ b/src/live_effects/lpe-rough-hatches.cpp
@@ -414,7 +414,7 @@ LPERoughHatches::linearSnake(Piecewise<D2<SBasis> > const &f, Point const &org){
while ( i < lscs.size() ){
int dir = 0;
//switch orientation of first segment according to starting point.
- if ((i % 2 == n % 2) && ((j + 1) < lscs[i].size()) && !lscs[i][j].used){
+ if ((static_cast<long long>(i) % 2 == n % 2) && ((j + 1) < lscs[i].size()) && !lscs[i][j].used){
j += 1;
dir = 2;
}