From f2bc3f3a1888863387aa6827dbb67de8a3f15261 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 12 May 2006 04:21:19 +0000 Subject: [PATCH] Fixed signed/unsigned issues --- src/SDL_error.c | 2 +- src/SDL_error_c.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SDL_error.c b/src/SDL_error.c index 85777a63d..4341cd068 100644 --- a/src/SDL_error.c +++ b/src/SDL_error.c @@ -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) diff --git a/src/SDL_error_c.h b/src/SDL_error_c.h index 05987eca7..990acb56b 100644 --- a/src/SDL_error_c.h +++ b/src/SDL_error_c.h @@ -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;