X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Futil.cpp;h=eb6425dfd1e0460fe04a44424634ef26baae3c38;hb=a96fae7e99c2d13bc864d919cbdbcd68ba9cb841;hp=37977f23f3a2c8fd0f6ad79b34ba4778891e4757;hpb=5a2494b3b0f2b3f2bc885ab6d4b55f1d5d5822c9;p=apps%2Fagl-service-windowmanager.git 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(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 +}