summaryrefslogtreecommitdiffstats
path: root/wsutil/sign_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'wsutil/sign_ext.h')
-rw-r--r--wsutil/sign_ext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/sign_ext.h b/wsutil/sign_ext.h
index 67401edb..e8c622a9 100644
--- a/wsutil/sign_ext.h
+++ b/wsutil/sign_ext.h
@@ -52,8 +52,8 @@ ws_sign_ext64(uint64_t val, int no_of_bits)
* the number of bits in the value - 1, and we might get
* compile-time or run-time complaints about that.
*/
- if (val & (G_GUINT64_CONSTANT(1) << (no_of_bits-1)))
- val |= (G_GUINT64_CONSTANT(0xFFFFFFFFFFFFFFFF) << no_of_bits);
+ if (val & (UINT64_C(1) << (no_of_bits-1)))
+ val |= (UINT64_C(0xFFFFFFFFFFFFFFFF) << no_of_bits);
return val;
}