Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix const warning in RLE getpix functions
  • Loading branch information
1bsyl committed Oct 30, 2019
1 parent 25d53a4 commit f16e510
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/video/SDL_RLEaccel.c
Expand Up @@ -1245,7 +1245,7 @@ getpix_8(const Uint8 * srcbuf)
static Uint32
getpix_16(const Uint8 * srcbuf)
{
return *(Uint16 *) srcbuf;
return *(const Uint16 *) srcbuf;
}

static Uint32
Expand All @@ -1259,12 +1259,12 @@ getpix_24(const Uint8 * srcbuf)
}

static Uint32
getpix_32(Uint8 * srcbuf)
getpix_32(const Uint8 * srcbuf)
{
return *(Uint32 *) srcbuf;
return *(const Uint32 *) srcbuf;
}

typedef Uint32(*getpix_func) (Uint8 *);
typedef Uint32(*getpix_func) (const Uint8 *);

static const getpix_func getpixes[4] = {
getpix_8, getpix_16, getpix_24, getpix_32
Expand Down

0 comments on commit f16e510

Please sign in to comment.