now uses INT_MIN

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36498 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2010-04-26 21:57:02 +00:00
parent 22984248fa
commit 4c688b93e3

View File

@ -35,7 +35,7 @@ struct ReadInt {
inline int operator()(const void* buffer) const {
// 0 == mid, 0x80000001 == bottom, 0x7fffffff == top
int b = *(int*)buffer;
if (b == -2147483648LL)
if (b == INT_MIN)
b++;
return b;
}