From d9dc8ef258ed2ddeeca83775eee945dbfdae59c5 Mon Sep 17 00:00:00 2001 From: Tadao Tanikawa Date: Thu, 29 Nov 2018 13:12:43 +0000 Subject: Migrates bindings v3 This patch migrates biding API of WM to v3. Change-Id: I2f2b23a8af437a414e2a00d629d3e72d0614eb72 Signed-off-by: Tadao Tanikawa --- src/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util.cpp') 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 +} -- cgit 1.2.3-korg