aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2007-05-28 08:31:18 +0000
committerGuy Harris <guy@alum.mit.edu>2007-05-28 08:31:18 +0000
commit00c0d3de9f097e09845f8e0185357d28d9767034 (patch)
tree1839aecfa25bdcc959876bbd94a47f11f8159837 /wiretap/wtap-int.h
parent13f3f6b85a92b4b409c944ccd463330db5a71c7a (diff)
Throw in some casts to suppress warnings.
svn path=/trunk/; revision=21971
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index b9739949be..73ba2ed892 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -393,19 +393,19 @@ extern gint wtap_num_file_types;
#ifndef phtons
#define phtons(p, v) \
- { \
- (p)[0] = (v) >> 8; \
- (p)[1] = (v); \
+ { \
+ (p)[0] = (guint8)((v) >> 8); \
+ (p)[1] = (guint8)((v) >> 0); \
}
#endif
#ifndef phtonl
#define phtonl(p, v) \
{ \
- (p)[0] = ((v) >> 24); \
- (p)[1] = ((v) >> 16); \
- (p)[2] = ((v) >> 8); \
- (p)[3] = (v); \
+ (p)[0] = (guint8)((v) >> 24); \
+ (p)[1] = (guint8)((v) >> 16); \
+ (p)[2] = (guint8)((v) >> 8); \
+ (p)[3] = (guint8)((v) >> 0); \
}
#endif