Change definition of UINT16_MAX macro (#84)

Change UINT16_MAX from `~(utf8proc_uint16_t)0` to fixed value `65535U` to prevent weird behaviour in complex expressions.
This commit is contained in:
Jakub Vít 2016-09-04 19:44:39 +01:00 committed by Steven G. Johnson
parent ce11639220
commit caef918abd

View File

@ -134,7 +134,7 @@ extern "C" {
#endif
#ifndef UINT16_MAX
# define UINT16_MAX ~(utf8proc_uint16_t)0
# define UINT16_MAX 65535U
#endif
/**