* General Public License for more details.
*/
-#include "ao.h"
#include "ao_draw.h"
#include "ao_draw_int.h"
#define bound(val,max,other) do { \
if (val < 0) { \
- other -= val; \
+ other += (typeof(other)) (-val); \
val = 0; \
} \
if (val > max) { \
- other -= (val - max); \
+ other -= (typeof(other)) (val - max); \
val = max; \
} \
} while (0)