Fixed signed/unsigned issues
authorSam Lantinga <slouken@libsdl.org>
Fri, 12 May 2006 04:21:19 +0000
changeset 1824e25445333ccf
parent 1823 d2b0f8b18ab8
child 1825 f255c6bee184
Fixed signed/unsigned issues
src/SDL_error.c
src/SDL_error_c.h
     1.1 --- a/src/SDL_error.c	Fri May 12 04:18:32 2006 +0000
     1.2 +++ b/src/SDL_error.c	Fri May 12 04:21:19 2006 +0000
     1.3 @@ -188,7 +188,7 @@
     1.4  {
     1.5  	static char errmsg[SDL_ERRBUFIZE];
     1.6  
     1.7 -	return((char *)SDL_GetErrorMsg((unsigned char *)errmsg, SDL_ERRBUFIZE));
     1.8 +	return((char *)SDL_GetErrorMsg(errmsg, SDL_ERRBUFIZE));
     1.9  }
    1.10  
    1.11  void SDL_ClearError(void)
     2.1 --- a/src/SDL_error_c.h	Fri May 12 04:18:32 2006 +0000
     2.2 +++ b/src/SDL_error_c.h	Fri May 12 04:21:19 2006 +0000
     2.3 @@ -40,7 +40,7 @@
     2.4  	   is not in the hashtable, or no hashtable is available, the key is
     2.5  	   used directly as an error message format string.
     2.6  	*/
     2.7 -	unsigned char key[ERR_MAX_STRLEN];
     2.8 +	char key[ERR_MAX_STRLEN];
     2.9  
    2.10  	/* These are the arguments for the error functions */
    2.11  	int argc;
    2.12 @@ -51,7 +51,7 @@
    2.13  #endif
    2.14  		int value_i;
    2.15  		double value_f;
    2.16 -		unsigned char buf[ERR_MAX_STRLEN];
    2.17 +		char buf[ERR_MAX_STRLEN];
    2.18  	} args[ERR_MAX_ARGS];
    2.19  } SDL_error;
    2.20