diff options
Diffstat (limited to 'src/mesa/main/format_utils.h')
-rw-r--r-- | src/mesa/main/format_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/format_utils.h b/src/mesa/main/format_utils.h index 2faaf76f016..7f500ec78da 100644 --- a/src/mesa/main/format_utils.h +++ b/src/mesa/main/format_utils.h @@ -163,7 +163,7 @@ _mesa_unsigned_to_unsigned(unsigned src, unsigned dst_size) static inline int _mesa_unsigned_to_signed(unsigned src, unsigned dst_size) { - return MIN2(src, MAX_INT(dst_size)); + return MIN2(src, (unsigned)MAX_INT(dst_size)); } static inline int |