Skip to content
Permalink
Browse files

Fixed a few signed/unsigned int issues reported by Clang

  • Loading branch information...
ata4 committed Jun 2, 2019
1 parent ebf15a0 commit 1c9eb1676c4f1793bb098f61f3193c602ff3eb22
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/core/n64video/rdp/rasterizer.c
  2. +1 −1 src/core/n64video/vi/gamma.c
@@ -714,7 +714,7 @@ static void render_spans_2cycle_complete(struct rdp_state* rdp, int start, int e
uint32_t prewrap;
uint32_t curpixel_cvg, curpixel_cvbit, curpixel_memcvg;
uint32_t nextpixel_cvg;
int32_t acalpha;
uint32_t acalpha;



@@ -986,7 +986,7 @@ static void render_spans_2cycle_notexelnext(struct rdp_state* rdp, int start, in
uint32_t prewrap;
uint32_t curpixel_cvg, curpixel_cvbit, curpixel_memcvg;
uint32_t nextpixel_cvg;
int32_t acalpha;
uint32_t acalpha;

int tile2 = (tilenum + 1) & 7;
int tile1 = tilenum;
@@ -1202,7 +1202,7 @@ static void render_spans_2cycle_notexel1(struct rdp_state* rdp, int start, int e
uint32_t prewrap;
uint32_t curpixel_cvg, curpixel_cvbit, curpixel_memcvg;
uint32_t nextpixel_cvg;
int32_t acalpha;
uint32_t acalpha;

int tile1 = tilenum;
int prim_tile = tilenum;
@@ -1415,7 +1415,7 @@ static void render_spans_2cycle_notex(struct rdp_state* rdp, int start, int end,
uint32_t prewrap;
uint32_t curpixel_cvg, curpixel_cvbit, curpixel_memcvg;
uint32_t nextpixel_cvg;
int32_t acalpha;
uint32_t acalpha;

int i, j;

@@ -21,7 +21,7 @@ static uint32_t vi_integer_sqrt(uint32_t a)
return res;
}

static STRICTINLINE void gamma_filters(struct rgba* pixel, struct vi_reg_ctrl ctrl, int32_t* rstate)
static STRICTINLINE void gamma_filters(struct rgba* pixel, struct vi_reg_ctrl ctrl, uint32_t* rstate)
{
int cdith, dith;

0 comments on commit 1c9eb16

Please sign in to comment.
You can’t perform that action at this time.