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:
@@ -15,7 +15,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <new>
|
#include <new>
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.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
|
// bounds is in floats and might be valid but much larger than what we can handle
|
||||||
// the size could not be expressed in int32
|
// the size could not be expressed in int32
|
||||||
double realSize = bounds.Width() * bounds.Height();
|
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",
|
fprintf(stderr, "bitmap bounds is much too large: BRect(%.1f, %.1f, %.1f, %.1f)\n",
|
||||||
bounds.left, bounds.top, bounds.right, bounds.bottom);
|
bounds.left, bounds.top, bounds.right, bounds.bottom);
|
||||||
error = B_BAD_VALUE;
|
error = B_BAD_VALUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user