Commit e9155f36 authored by Committed by Ben Pfaff
type-props: Avoid a MSVC warning.
Currently, MSVC complains when you have a macro of the form TYPE_MAXIMUM(uint64_t) because a part of macro becomes ~(uint64_t)0 << 64 with a warning: C4293: '<<' : shift count negative or too big, undefined behavior. This commit makes changes to the macro to prevent that warning. Suggested-by: Ben Pfaff <email@example.com> Signed-off-by: Gurucharan Shetty <firstname.lastname@example.org> Acked-by: Ben Pfaff <email@example.com>
Showing with 2 additions and 2 deletions