Index: third_party/agg23/agg_rasterizer_scanline_aa.cpp |
diff --git a/third_party/agg23/agg_rasterizer_scanline_aa.cpp b/third_party/agg23/agg_rasterizer_scanline_aa.cpp |
index c6b3f013a03d011ebe7b3cdfdf65ed7a7c44986c..af6dd58fe30432a36f4eb18c8049d05074f75e05 100644 |
--- a/third_party/agg23/agg_rasterizer_scanline_aa.cpp |
+++ b/third_party/agg23/agg_rasterizer_scanline_aa.cpp |
@@ -283,8 +283,8 @@ void outline_aa::render_line(int x1, int y1, int x2, int y2) |
incr = -1; |
dy = -dy; |
} |
- delta = safeP.ValueOrDie() / dy; |
- mod = safeP.ValueOrDie() % dy; |
+ delta = (safeP / dy).ValueOrDie(); |
+ mod = (safeP % dy).ValueOrDie(); |
if(mod < 0) { |
delta--; |
mod += dy; |
@@ -298,8 +298,8 @@ void outline_aa::render_line(int x1, int y1, int x2, int y2) |
safeP *= dx; |
if (!safeP.IsValid()) |
return; |
- lift = safeP.ValueOrDie() / dy; |
- rem = safeP.ValueOrDie() % dy; |
+ lift = (safeP / dy).ValueOrDie(); |
+ rem = (safeP % dy).ValueOrDie(); |
if (rem < 0) { |
lift--; |
rem += dy; |