diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index fe348aa55c8..eb8c2f6ae3f 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -870,7 +870,7 @@ static inline size_t util_format_get_stride(enum pipe_format format, unsigned width) { - return util_format_get_nblocksx(format, width) * util_format_get_blocksize(format); + return (size_t)util_format_get_nblocksx(format, width) * util_format_get_blocksize(format); } static inline size_t |