Commit 8aa4c7fd authored by Sam Lantinga's avatar Sam Lantinga

Fixed signed/unsigned issues

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401785
parent 9e911885
...@@ -188,7 +188,7 @@ char *SDL_GetError (void) ...@@ -188,7 +188,7 @@ char *SDL_GetError (void)
{ {
static char errmsg[SDL_ERRBUFIZE]; 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) void SDL_ClearError(void)
......
...@@ -40,7 +40,7 @@ typedef struct SDL_error { ...@@ -40,7 +40,7 @@ typedef struct SDL_error {
is not in the hashtable, or no hashtable is available, the key is is not in the hashtable, or no hashtable is available, the key is
used directly as an error message format string. 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 */ /* These are the arguments for the error functions */
int argc; int argc;
...@@ -51,7 +51,7 @@ typedef struct SDL_error { ...@@ -51,7 +51,7 @@ typedef struct SDL_error {
#endif #endif
int value_i; int value_i;
double value_f; double value_f;
unsigned char buf[ERR_MAX_STRLEN]; char buf[ERR_MAX_STRLEN];
} args[ERR_MAX_ARGS]; } args[ERR_MAX_ARGS];
} SDL_error; } SDL_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment