aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-11-30 21:07:10 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-11-30 21:07:10 +0000
commit2b1bf85afe0a8b24f75386f7c24df85f9b785bd3 (patch)
tree8b727b720dd475deb8fbd52ec0cae83613b156ec /src/util.cpp
parentd1188744973931f66a83968310175369cd85c231 (diff)
parentd9dc8ef258ed2ddeeca83775eee945dbfdae59c5 (diff)
Merge "Migrates bindings v3"guppy_6.99.2guppy/6.99.26.99.2
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 37977f2..eb6425d 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -29,7 +29,7 @@ void rectangle::fit(unsigned long to_width, unsigned long to_height)
{
// fit rect within (to_width x to_height)
- if (to_width <= width()) {
+ if (to_width <= (unsigned long)width()) {
// scale to fit with
set_bottom(top() + (static_cast<long>(to_width) * height() / width()) - 1);
set_right(left() + to_width - 1);
@@ -139,4 +139,4 @@ void _DUMP(enum LOG_LEVEL level, const char *log, ...)
fprintf(stderr, "%s \n", message);
va_end(args);
free(message);
-} \ No newline at end of file
+}