warning--, someone double check this cast
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 16 Oct 2011 15:36:26 +0000 (15:36 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 16 Oct 2011 15:36:26 +0000 (15:36 +0000)
SVN revision: 64113

src/bin/e.h

index c496de4..f7b07f6 100644 (file)
@@ -179,7 +179,7 @@ typedef struct _E_Rect E_Rect;
             { \
                _w += _x - (_cx); \
                _x = (_cx); \
-               if (_w < 0) _w = 0; \
+               if ((int)_w < 0) _w = 0; \
             } \
           if ((_x + _w) > ((_cx) + (_cw))) \
             _w = (_cx) + (_cw) - _x; \
@@ -187,7 +187,7 @@ typedef struct _E_Rect E_Rect;
             { \
                _h += _y - (_cy); \
                _y = (_cy); \
-               if (_h < 0) _h = 0; \
+               if ((int)_h < 0) _h = 0; \
             } \
           if ((_y + _h) > ((_cy) + (_ch))) \
             _h = (_cy) + (_ch) - _y; \