mirror of
https://github.com/yawut/SDL.git
synced 2026-09-07 08:36:19 -05:00
Fixed some compiler warnings that Visual Studio reported.
This commit is contained in:
@@ -57,8 +57,8 @@ SDL_TLSSet(SDL_TLSID id, const void *value, void (*destructor)(void *))
|
||||
}
|
||||
|
||||
storage = SDL_SYS_GetTLSData();
|
||||
if (!storage || id > storage->limit) {
|
||||
int i, oldlimit, newlimit;
|
||||
if (!storage || (id > storage->limit)) {
|
||||
unsigned int i, oldlimit, newlimit;
|
||||
|
||||
oldlimit = storage ? storage->limit : 0;
|
||||
newlimit = (id + TLS_ALLOC_CHUNKSIZE);
|
||||
|
||||
@@ -58,7 +58,7 @@ extern void SDL_RunThread(void *data);
|
||||
|
||||
/* This is the system-independent thread local storage structure */
|
||||
typedef struct {
|
||||
int limit;
|
||||
unsigned int limit;
|
||||
struct {
|
||||
void *data;
|
||||
void (*destructor)(void*);
|
||||
|
||||
Reference in New Issue
Block a user