This fixes the build for the libbe_test target - there is no stdint.h in BeOS

(and it shouldn't matter a lot in this case, anyway).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14850 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-11 12:19:30 +00:00
parent 13e525e302
commit d28dc0ce83

View File

@ -15,7 +15,6 @@
#include <algorithm>
#include <limits.h>
#include <new>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
@ -2195,7 +2194,7 @@ BBitmap::InitObject(BRect bounds, color_space colorSpace, uint32 flags,
// bounds is in floats and might be valid but much larger than what we can handle
// the size could not be expressed in int32
double realSize = bounds.Width() * bounds.Height();
if (realSize > (double)(INT32_MAX / 4)) {
if (realSize > (double)(INT_MAX / 4)) {
fprintf(stderr, "bitmap bounds is much too large: BRect(%.1f, %.1f, %.1f, %.1f)\n",
bounds.left, bounds.top, bounds.right, bounds.bottom);
error = B_BAD_VALUE;