* fix silly unsigned vs signed bug in gcc2
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42886 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -248,7 +248,7 @@ atom_get_src_int(atom_exec_context *ctx, uint8 attr, int *ptr,
|
|||||||
val = gctx->scratch[((gctx->fb_base + idx) / 4)];
|
val = gctx->scratch[((gctx->fb_base + idx) / 4)];
|
||||||
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
|
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
|
||||||
ERROR("%s: fb tried to read beyond scratch region!"
|
ERROR("%s: fb tried to read beyond scratch region!"
|
||||||
" %" B_PRIu32 " vs. %d\n", __func__,
|
" %" B_PRIu32 " vs. %" B_PRIu32 "\n", __func__,
|
||||||
gctx->fb_base + (idx * 4), gctx->scratch_size_bytes);
|
gctx->fb_base + (idx * 4), gctx->scratch_size_bytes);
|
||||||
val = 0;
|
val = 0;
|
||||||
} else
|
} else
|
||||||
@@ -472,7 +472,7 @@ atom_put_dst(atom_exec_context *ctx, int arg, uint8 attr,
|
|||||||
(*ptr)++;
|
(*ptr)++;
|
||||||
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
|
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
|
||||||
ERROR("%s: fb tried to write beyond scratch region! "
|
ERROR("%s: fb tried to write beyond scratch region! "
|
||||||
"%" B_PRIu32 " vs. %d\n", __func__,
|
"%" B_PRIu32 " vs. %" B_PRIu32 "\n", __func__,
|
||||||
gctx->fb_base + (idx * 4), gctx->scratch_size_bytes);
|
gctx->fb_base + (idx * 4), gctx->scratch_size_bytes);
|
||||||
} else
|
} else
|
||||||
gctx->scratch[(gctx->fb_base / 4) + idx] = val;
|
gctx->scratch[(gctx->fb_base / 4) + idx] = val;
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ typedef struct atom_context_s {
|
|||||||
int cs_equal, cs_above;
|
int cs_equal, cs_above;
|
||||||
int io_mode;
|
int io_mode;
|
||||||
uint32 *scratch;
|
uint32 *scratch;
|
||||||
int scratch_size_bytes;
|
uint32 scratch_size_bytes;
|
||||||
} atom_context;
|
} atom_context;
|
||||||
|
|
||||||
extern int atom_debug;
|
extern int atom_debug;
|
||||||
|
|||||||
Reference in New Issue
Block a user