aboutsummaryrefslogtreecommitdiffstats
path: root/pb.h
diff options
context:
space:
mode:
authorStan Hu <stanhu@aclimalabs.com>2012-07-02 14:00:45 -0700
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2012-07-05 18:13:50 +0300
commit7c5bb6541a820dd4721358226ca3815d94736863 (patch)
tree45c0fa319336df5f4635399ce46894b84ba550e4 /pb.h
parent9b1e1b440ab6a21bacab939b9c7bef0fa4ca5c90 (diff)
Cast enum vaules to integers and cast them back where appropraite
to prevent mixed enumeration type compiler warnings
Diffstat (limited to 'pb.h')
-rw-r--r--pb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pb.h b/pb.h
index d030d9e3..61696a4f 100644
--- a/pb.h
+++ b/pb.h
@@ -195,7 +195,7 @@ typedef enum {
#define pb_arraysize(st, m) (pb_membersize(st, m) / pb_membersize(st, m[0]))
#define pb_delta(st, m1, m2) ((int)offsetof(st, m1) - (int)offsetof(st, m2))
#define pb_delta_end(st, m1, m2) (offsetof(st, m1) - offsetof(st, m2) - pb_membersize(st, m2))
-#define PB_LAST_FIELD {0,0,0,0}
+#define PB_LAST_FIELD {0,(pb_type_t) 0,0,0}
#endif