Fix -Wsign-compare warning on mingw
This commit is contained in:
parent
c6dbb10b74
commit
9a5ad1b558
2
thread.c
2
thread.c
@ -5512,7 +5512,7 @@ Init_Thread(void)
|
|||||||
|
|
||||||
if (ptr) {
|
if (ptr) {
|
||||||
long quantum = strtol(ptr, NULL, 0);
|
long quantum = strtol(ptr, NULL, 0);
|
||||||
if (quantum > 0 && quantum <= UINT32_MAX) {
|
if (quantum > 0 && !(SIZEOF_LONG > 4 && quantum > UINT32_MAX)) {
|
||||||
thread_default_quantum_ms = (uint32_t)quantum;
|
thread_default_quantum_ms = (uint32_t)quantum;
|
||||||
}
|
}
|
||||||
else if (0) {
|
else if (0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user