diff options
author | Uli Heilmeier <uh@heilmeier.eu> | 2019-02-05 21:32:17 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-02-08 12:12:18 +0000 |
commit | 061ebbda564d719df69da24663c60a78584b5b9b (patch) | |
tree | 6f3b40bf78c6ec55a2d33fec1ed5fb74b9a37a9e /epan/proto.c | |
parent | e46686ccebe61de62d527b7bfaebff14fca1f4a3 (diff) |
Fixing some implicit coversations (-Wshorten-64-to-32)
Fixing some "implicit conversion loses integer precision" warnings
reported by clang with -Wshorten-64-to-32 option
Change-Id: Icd641d5f4fd8ff129f03f1b9e1da0fc86329f096
Reviewed-on: https://code.wireshark.org/review/31901
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 02b0cc4567..be065fde0b 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -2048,7 +2048,7 @@ get_time_value(proto_tree *tree, tvbuff_t *tvb, const gint start, * The upper 48 bits are seconds since the * UN*X epoch. */ - time_stamp->secs = tvb_get_ntoh48(tvb, start); + time_stamp->secs = (time_t)tvb_get_ntoh48(tvb, start); /* * The lower 16 bits are 1/2^16s of a second; * convert them to nanoseconds. @@ -2086,7 +2086,7 @@ get_time_value(proto_tree *tree, tvbuff_t *tvb, const gint start, * The lower 48 bits are seconds since the * UN*X epoch. */ - time_stamp->secs = tvb_get_letoh48(tvb, start+2); + time_stamp->secs = (time_t)tvb_get_letoh48(tvb, start+2); /* * The upper 16 bits are 1/2^16s of a second; * convert them to nanoseconds. |