aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee17221.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-03-23 01:58:46 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-03-23 01:58:46 +0000
commit323dd08b61c5e804406e694d227de2836c051dd1 (patch)
treea7bd57b8739fe783301f38a1dd7615f189096e51 /epan/dissectors/packet-ieee17221.c
parent9c1bf7223e576acaa9452f06c3cf809c98794cc7 (diff)
Add a couple casts to fix the Windows builds.
svn path=/trunk/; revision=41745
Diffstat (limited to 'epan/dissectors/packet-ieee17221.c')
-rw-r--r--epan/dissectors/packet-ieee17221.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee17221.c b/epan/dissectors/packet-ieee17221.c
index 3a544e26a1..3b774c42ed 100644
--- a/epan/dissectors/packet-ieee17221.c
+++ b/epan/dissectors/packet-ieee17221.c
@@ -2551,8 +2551,8 @@ dissect_17221_aem(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
base_freq &= 0x1fffffff;
/* replace this with something not horrible */
frequency = freq_mult == 0 ? 1 :
- freq_mult == 1 ? 1 / 1.001 :
- freq_mult == 2 ? 1.001 :
+ freq_mult == 1 ? 1 / (gfloat)1.001 :
+ freq_mult == 2 ? (gfloat)1.001 :
freq_mult == 3 ? 24 / 25 :
freq_mult == 4 ? 54 / 24 : 0;