Skip to content
Permalink
Browse files

Fixed signed/unsigned issues

  • Loading branch information
slouken committed May 12, 2006
1 parent d7c3c4d commit f2bc3f3a1888863387aa6827dbb67de8a3f15261
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/SDL_error.c
  2. +2 −2 src/SDL_error_c.h
@@ -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)
@@ -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;
@@ -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;

0 comments on commit f2bc3f3

Please sign in to comment.