aboutsummaryrefslogtreecommitdiff
path: root/common/rect.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/rect.h')
-rw-r--r--common/rect.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rect.h b/common/rect.h
index d88f400039..f71124434a 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -61,7 +61,7 @@ struct Point {
if (diffy >= 0x1000)
return 0xFFFFFF;
- return diffx*diffx + diffy*diffy;
+ return uint(diffx*diffx + diffy*diffy);
}
};