* 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:
Alexander von Gluck IV
2011-10-19 20:12:20 +00:00
parent 9b4aacc210
commit 24d19f4dab
2 changed files with 3 additions and 3 deletions
@@ -248,7 +248,7 @@ atom_get_src_int(atom_exec_context *ctx, uint8 attr, int *ptr,
val = gctx->scratch[((gctx->fb_base + idx) / 4)];
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
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);
val = 0;
} else
@@ -472,7 +472,7 @@ atom_put_dst(atom_exec_context *ctx, int arg, uint8 attr,
(*ptr)++;
if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) {
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);
} else
gctx->scratch[(gctx->fb_base / 4) + idx] = val;
@@ -143,7 +143,7 @@ typedef struct atom_context_s {
int cs_equal, cs_above;
int io_mode;
uint32 *scratch;
int scratch_size_bytes;
uint32 scratch_size_bytes;
} atom_context;
extern int atom_debug;