diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-02-21 12:07:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-02-21 20:08:06 +0000 |
commit | f12d23102406af7f05b73160a4c2c3e648f24203 (patch) | |
tree | e9fe52d67e89e2949921ed350f83f3ff80b2f862 /epan/to_str.c | |
parent | f868da29d813092f323e721ba9abc674cb534388 (diff) |
More wrapping of constants with G_GUINT64_CONSTANT().
Change-Id: I11771b08cc4e57692c42dd3fc8976fe390b3025d
Reviewed-on: https://code.wireshark.org/review/7299
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index 32ac48262d..64e7c666f9 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -268,24 +268,24 @@ guint64_to_str_buf_len(const guint64 u) { /* ((2^64)-1) == 18446744073709551615 */ - if (u >= 1000000000000000000) return 19; - if (u >= 100000000000000000) return 18; - if (u >= 10000000000000000) return 17; - if (u >= 1000000000000000) return 16; - if (u >= 100000000000000) return 15; - if (u >= 10000000000000) return 14; - if (u >= 1000000000000) return 13; - if (u >= 100000000000) return 12; - if (u >= 10000000000) return 11; - if (u >= 1000000000) return 10; - if (u >= 100000000) return 9; - if (u >= 10000000) return 8; - if (u >= 1000000) return 7; - if (u >= 100000) return 6; - if (u >= 10000) return 5; - if (u >= 1000) return 4; - if (u >= 100) return 3; - if (u >= 10) return 2; + if (u >= G_GUINT64_CONSTANT(1000000000000000000)) return 19; + if (u >= G_GUINT64_CONSTANT(100000000000000000)) return 18; + if (u >= G_GUINT64_CONSTANT(10000000000000000)) return 17; + if (u >= G_GUINT64_CONSTANT(1000000000000000)) return 16; + if (u >= G_GUINT64_CONSTANT(100000000000000)) return 15; + if (u >= G_GUINT64_CONSTANT(10000000000000)) return 14; + if (u >= G_GUINT64_CONSTANT(1000000000000)) return 13; + if (u >= G_GUINT64_CONSTANT(100000000000)) return 12; + if (u >= G_GUINT64_CONSTANT(10000000000)) return 11; + if (u >= G_GUINT64_CONSTANT(1000000000)) return 10; + if (u >= G_GUINT64_CONSTANT(100000000)) return 9; + if (u >= G_GUINT64_CONSTANT(10000000)) return 8; + if (u >= G_GUINT64_CONSTANT(1000000)) return 7; + if (u >= G_GUINT64_CONSTANT(100000)) return 6; + if (u >= G_GUINT64_CONSTANT(10000)) return 5; + if (u >= G_GUINT64_CONSTANT(1000)) return 4; + if (u >= G_GUINT64_CONSTANT(100)) return 3; + if (u >= G_GUINT64_CONSTANT(10)) return 2; return 1; } |