Skip to content

Commit

Permalink
Fixed signed/unsigned issues
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 12, 2006
1 parent d7c3c4d commit f2bc3f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/SDL_error.c
Expand Up @@ -188,7 +188,7 @@ char *SDL_GetError (void)
{
static char errmsg[SDL_ERRBUFIZE];

return((char *)SDL_GetErrorMsg((unsigned char *)errmsg, SDL_ERRBUFIZE));
return((char *)SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE));
}

void SDL_ClearError(void)
Expand Down
4 changes: 2 additions & 2 deletions src/SDL_error_c.h
Expand Up @@ -40,7 +40,7 @@ typedef struct SDL_error {
is not in the hashtable, or no hashtable is available, the key is
used directly as an error message format string.
*/
unsigned char key[ERR_MAX_STRLEN];
char key[ERR_MAX_STRLEN];

/* These are the arguments for the error functions */
int argc;
Expand All @@ -51,7 +51,7 @@ typedef struct SDL_error {
#endif
int value_i;
double value_f;
unsigned char buf[ERR_MAX_STRLEN];
char buf[ERR_MAX_STRLEN];
} args[ERR_MAX_ARGS];
} SDL_error;

Expand Down

0 comments on commit f2bc3f3

Please sign in to comment.