mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix -Wsign-compare warning on mingw
This commit is contained in:
parent
c6dbb10b74
commit
9a5ad1b558
1 changed files with 1 additions and 1 deletions
2
thread.c
2
thread.c
|
@ -5512,7 +5512,7 @@ Init_Thread(void)
|
|||
|
||||
if (ptr) {
|
||||
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;
|
||||
}
|
||||
else if (0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue