--- np2/common/bmpdata.c 2003/11/21 06:51:10 1.2 +++ np2/common/bmpdata.c 2004/06/21 14:29:22 1.3 @@ -107,8 +107,8 @@ BOOL bmpdata_getinfo(const BMPINFO *bi, if (tmp != 0) { goto bdgi_err; } - width = LOADINTELDWORD(bi->biWidth); - height = LOADINTELDWORD(bi->biHeight); + width = (SINT32)LOADINTELDWORD(bi->biWidth); + height = (SINT32)LOADINTELDWORD(bi->biHeight); if ((width <= 0) || (height == 0)) { goto bdgi_err; }