Fix uint64_t vs size_t when compiling with -m32

This commit is contained in:
Nigel Tao committed 2021-01-08 23:07:07 +11:00
1 parent c86add25f7
commit 2b17cf72ca
14 files changed
+172 -164

No files matched your search

+1 -1
View File
@@ -1149,7 +1149,7 @@ wuffs_base__pixel_buffer__set_from_slice(wuffs_base__pixel_buffer* pb,
return wuffs_base__make_status(wuffs_base__error__bad_argument);
}
wh *= bytes_per_pixel;
width *= bytes_per_pixel;
width = ((size_t)(width * bytes_per_pixel));
if (wh > len) {
return wuffs_base__make_status(
wuffs_base__error__bad_argument_length_too_short);