summaryrefslogtreecommitdiff
path: root/epan/proto.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-09-12 17:17:42 +0000
committerEvan Huus <eapache@gmail.com>2013-09-12 17:17:42 +0000
commit3d5ed04f60892f6cbe1d188a6a247f38b1928ec3 (patch)
treec68791d90d9d6d16dc8d99a892c38ee753ebd8a9 /epan/proto.c
parentf8693e35e0ca7c911350b6dd165577c23acd0336 (diff)
downloadwireshark-3d5ed04f60892f6cbe1d188a6a247f38b1928ec3.tar.gz
Add casts to fix mac buildbots.
svn path=/trunk/; revision=51975
Diffstat (limited to 'epan/proto.c')
-rw-r--r--epan/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c
index 867647cd2b..aa95d36fd7 100644
--- a/epan/proto.c
+++ b/epan/proto.c
@@ -1602,7 +1602,7 @@ proto_tree_new_item(field_info *new_fi, proto_tree *tree,
todsecs = tvb_get_ntoh64(tvb, start) >> 12;
time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
- time_stamp.nsecs = (todsecs % 1000000) * 1000;
+ time_stamp.nsecs = (int)((todsecs % 1000000) * 1000);
break;
case ENC_TIME_TOD|ENC_LITTLE_ENDIAN:
@@ -1611,7 +1611,7 @@ proto_tree_new_item(field_info *new_fi, proto_tree *tree,
*/
todsecs = tvb_get_letoh64(tvb, start) >> 12 ;
time_stamp.secs = (todsecs / 1000000) - TOD_BASETIME;
- time_stamp.nsecs = (todsecs % 1000000) * 1000;
+ time_stamp.nsecs = (int)((todsecs % 1000000) * 1000);
break;
case ENC_TIME_NTP|ENC_BIG_ENDIAN: