X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Futil.cpp;fp=src%2Futil.cpp;h=eb6425dfd1e0460fe04a44424634ef26baae3c38;hb=d9dc8ef258ed2ddeeca83775eee945dbfdae59c5;hp=37977f23f3a2c8fd0f6ad79b34ba4778891e4757;hpb=c5b67725974af99e50fa5dc02843c7d741add880;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 +}