util: Use LONG_MAX instead of LONG_BIT.
authorJose Fonseca <jfonseca@vmware.com>
Sun, 9 Aug 2015 21:36:37 +0000 (22:36 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 9 Aug 2015 23:08:55 +0000 (00:08 +0100)
commit1eaa29cb300e927409281ef0a9413072766eaa3d
treeddbc242cd110d7385f3af4553afab3e461737527
parent497a22a727d3606c7327eb72efbf0d2c03607f0a
util: Use LONG_MAX instead of LONG_BIT.

More portable.  Based on Roland Scheidegger's idea.

Tested with roundevent_test on Linux, MinGW, and MSVC.

https://bugs.freedesktop.org/show_bug.cgi?id=91591

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/util/rounding.h