summaryrefslogtreecommitdiff
path: root/upb/msg.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2018-12-31 20:00:22 -0800
committerJoshua Haberman <jhaberman@gmail.com>2018-12-31 20:00:22 -0800
commitd0c8bb84f449e7fc94a85ac1594cb8090f3c9bb8 (patch)
treecfd26fa7b36463e81c3788f4c981dc7d1608e0f9 /upb/msg.h
parent45d61f42990d2823a914680098c0e24c15ebf396 (diff)
WIP.
Diffstat (limited to 'upb/msg.h')
-rw-r--r--upb/msg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/msg.h b/upb/msg.h
index 6061470..4529478 100644
--- a/upb/msg.h
+++ b/upb/msg.h
@@ -99,7 +99,7 @@ UPB_INLINE bool upb_stringview_eql(upb_stringview a, upb_stringview b) {
}
#define UPB_STRINGVIEW_FORMAT "%.*s"
-#define UPB_STRINGVIEW_ARGS(view) view.size, view.data
+#define UPB_STRINGVIEW_ARGS(view) (int)(view).size, (view).data
#define UPB_STRINGVIEW_INIT(ptr, len) {ptr, len}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback