diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-21 16:57:52 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2009-04-21 16:57:52 +0000 |
commit | 64016f50fe6793ca0a74d52b3f4d13a7ba2d88b1 (patch) | |
tree | 26c23c6b5773084609cd0d8ff02dfbd9cf624e1f /epan/dissectors/packet-cops.c | |
parent | b2e0ce09884ec03f9af1f4d52e34c81813168b79 (diff) |
Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats). Hopefully this will catch at least
some P64 issues on UN*X.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28108 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-cops.c')
-rw-r--r-- | epan/dissectors/packet-cops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-cops.c b/epan/dissectors/packet-cops.c index dfa7256b2e..10f535eeb9 100644 --- a/epan/dissectors/packet-cops.c +++ b/epan/dissectors/packet-cops.c @@ -2517,7 +2517,7 @@ info_to_display(tvbuff_t *tvb, proto_item *stt, int offset, int octets, const ch guint16 code16 = 0; guint32 codeipv4 = 0; guint32 code32 = 0; - float codefl = 0.0; + float codefl = 0.0f; /* Print information elements in the specified way */ switch (octets) { |