32-bit compile warning fix

This commit is contained in:
baldurk
2015-10-16 12:22:25 +02:00
parent ad59636cde
commit 2e08ef8ef5
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -162,7 +162,7 @@ namespace Threading
TLSData *slots = (TLSData *)pthread_getspecific(OSTLSHandle);
if(slots == NULL || slot-1 >= slots->data.size())
return NULL;
return slots->data[slot-1];
return slots->data[(size_t)slot-1];
}
void SetTLSValue(uint64_t slot, void *value)
@@ -181,10 +181,10 @@ namespace Threading
}
if(slot-1 >= slots->data.size())
slots->data.resize(slot);
slots->data.resize((size_t)slot);
}
slots->data[slot-1] = value;
slots->data[(size_t)slot-1] = value;
}
ThreadHandle CreateThread(ThreadEntry entryFunc, void *userData)
+3 -3
View File
@@ -157,7 +157,7 @@ namespace Threading
TLSData *slots = (TLSData *)TlsGetValue(OSTLSHandle);
if(slots == NULL || slot-1 >= slots->data.size())
return NULL;
return slots->data[slot-1];
return slots->data[(size_t)slot-1];
}
void SetTLSValue(uint64_t slot, void *value)
@@ -176,10 +176,10 @@ namespace Threading
}
if(slot-1 >= slots->data.size())
slots->data.resize(slot);
slots->data.resize((size_t)slot);
}
slots->data[slot-1] = value;
slots->data[(size_t)slot-1] = value;
}
ThreadHandle CreateThread(ThreadEntry entryFunc, void *userData)