diff options
author | Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com> | 2018-11-29 13:12:43 +0000 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2018-11-30 17:44:40 +0000 |
commit | d9dc8ef258ed2ddeeca83775eee945dbfdae59c5 (patch) | |
tree | d2a8853847e48925c0ecbb82e58be0a3e52a6e36 /src/util.cpp | |
parent | c5b67725974af99e50fa5dc02843c7d741add880 (diff) |
Migrates bindings v3
This patch migrates biding API of WM to v3.
Change-Id: I2f2b23a8af437a414e2a00d629d3e72d0614eb72
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
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 +} |