mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
32a71a00aa
C99 chapter 7.18.2, Limits of specified-width integer types: "This expression shall have the same type as would an expression that is an object of the corresponding type according to the integer promotions." C99 chapter 6.3.1.1: "If an int can represent all values of the original type, the value is converted to an int; otherwise, it is converted to an unsigned int. These are called the integer promotions." Therefore, UINT8_MAX, UINT16_MAX, UINT8_C and UINT16_C should be signed. This prevents building WebKit with -Werror. Change-Id: Ib2a2c15acc2c761cccf8caa016c7ff163e3fdc0d Reviewed-on: https://review.haiku-os.org/c/haiku/+/5806 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>