diff options
author | Sean Fox <dyntryx@gmail.com> | 2009-01-24 22:46:29 +0000 |
---|---|---|
committer | Sean Fox <dyntryx@gmail.com> | 2009-01-24 22:46:29 +0000 |
commit | ab0d378fb408ec1192797be4094c7f8f0233ff5e (patch) | |
tree | 53e97cc73458775720f2d528199a1a63f4242cdf /libnsbmp.h | |
parent | 3a18e3f0cdebb54504d083419377529d1465cf64 (diff) | |
download | libnsbmp-ab0d378fb408ec1192797be4094c7f8f0233ff5e.tar.gz libnsbmp-ab0d378fb408ec1192797be4094c7f8f0233ff5e.tar.bz2 |
Properly avoid overflows of width and height and cast integers to 64-bit where necessary to do proper calculations.
svn path=/trunk/libnsbmp/; revision=6254
Diffstat (limited to 'libnsbmp.h')
-rw-r--r-- | libnsbmp.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -70,8 +70,8 @@ typedef struct bmp_bitmap_callback_vt_s { typedef struct bmp_image { bmp_bitmap_callback_vt bitmap_callbacks; /**< callbacks for bitmap functions */ uint8_t *bmp_data; /** pointer to BMP data */ - uint16_t width; /** width of BMP (valid after _analyse) */ - uint16_t height; /** heigth of BMP (valid after _analyse) */ + uint32_t width; /** width of BMP (valid after _analyse) */ + uint32_t height; /** heigth of BMP (valid after _analyse) */ bool decoded; /** whether the image has been decoded */ void *bitmap; /** decoded image */ /** Internal members are listed below |