Skip to content

Commit

Permalink
Change definition of UINT16_MAX macro
Browse files Browse the repository at this point in the history
Change UINT16_MAX from `~(utf8proc_uint16_t)0` to fixed value `65535U` to prevent weird behaviour in complex expressions.
  • Loading branch information
jvit committed Sep 4, 2016
1 parent ce11639 commit 597189a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utf8proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ extern "C" {
#endif

#ifndef UINT16_MAX
# define UINT16_MAX ~(utf8proc_uint16_t)0
# define UINT16_MAX 65535U
#endif

/**
Expand Down

0 comments on commit 597189a

Please sign in to comment.