Fixed signed/unsigned issues
authorSam Lantinga <slouken@libsdl.org>
Fri, 12 May 2006 04:21:19 +0000
changeset 1824 e25445333ccf
parent 1823 d2b0f8b18ab8
child 1825 f255c6bee184
Fixed signed/unsigned issues
src/SDL_error.c
src/SDL_error_c.h
--- a/src/SDL_error.c	Fri May 12 04:18:32 2006 +0000
+++ b/src/SDL_error.c	Fri May 12 04:21:19 2006 +0000
@@ -188,7 +188,7 @@
 {
 	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)
--- a/src/SDL_error_c.h	Fri May 12 04:18:32 2006 +0000
+++ b/src/SDL_error_c.h	Fri May 12 04:21:19 2006 +0000
@@ -40,7 +40,7 @@
 	   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 @@
 #endif
 		int value_i;
 		double value_f;
-		unsigned char buf[ERR_MAX_STRLEN];
+		char buf[ERR_MAX_STRLEN];
 	} args[ERR_MAX_ARGS];
 } SDL_error;