From ff376ea8a590f8afbc521eb7cac0a54c2acabc3b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 May 2002 18:10:29 +0000 Subject: fixed some warnings svn-id: r4204 --- simon/simon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'simon') diff --git a/simon/simon.cpp b/simon/simon.cpp index 15691dc84c..c490b6b1c7 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -6529,8 +6529,8 @@ void SimonState::o_pathfind(int x,int y,uint var_1,uint var_2) { if (!p) continue; for(j=0; READ_BE_UINT16_UNALIGNED(&p[0]) != 999; j++,p+=2) { /* 0xE703 = byteswapped 999 */ - x_diff = abs(READ_BE_UINT16_UNALIGNED(&p[0]) - x); - y_diff = abs(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y); + x_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[0]) - x)); + y_diff = abs((int)(READ_BE_UINT16_UNALIGNED(&p[1]) - 12 - y)); if (x_diff < y_diff) { x_diff >>= 2; -- cgit v1.2.3