]> git.kaiwu.me - njs.git/commitdiff
Fixed constant is too large for 'long' warning on mips -mabi=n32.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Jun 2025 05:54:54 +0000 (22:54 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Sun, 8 Jun 2025 05:37:32 +0000 (22:37 -0700)
Prodded by Orgad Shaneh.

src/njs_clang.h

index 2bd45a74f656208d92811fa22257592b0c50d53a..af9f3350bcce3021ad4428303408c023d6899e35 100644 (file)
@@ -111,7 +111,7 @@ njs_leading_zeros64(uint64_t x)
 
     n = 0;
 
-    while ((x & 0x8000000000000000) == 0) {
+    while ((x & 0x8000000000000000ULL) == 0) {
         n++;
         x <<= 1;
     }