summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
Diffstat (limited to 'upb')
-rw-r--r--upb/bindings/lua/msg.c2
-rw-r--r--upb/msg.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/upb/bindings/lua/msg.c b/upb/bindings/lua/msg.c
index dc8420f..e468ace 100644
--- a/upb/bindings/lua/msg.c
+++ b/upb/bindings/lua/msg.c
@@ -434,7 +434,7 @@ static upb_msgval lupb_tomsgval(lua_State *L, upb_fieldtype_t type, int narg,
case UPB_TYPE_BYTES: {
size_t len;
const char *ptr = lupb_checkstring(L, narg, &len);
- return upb_msgval_str(upb_stringview_make(ptr, len));
+ return upb_msgval_makestr(ptr, len);
}
case UPB_TYPE_MESSAGE:
UPB_ASSERT(lmsgclass);
diff --git a/upb/msg.h b/upb/msg.h
index 7026a50..dd25542 100644
--- a/upb/msg.h
+++ b/upb/msg.h
@@ -126,6 +126,7 @@ UPB_INLINE upb_stringview upb_stringview_make(const char *data, size_t size) {
#define UPB_STRINGVIEW_INIT(ptr, len) {ptr, len}
+
/** upb_msgval ****************************************************************/
/* A union representing all possible protobuf values. Used for generic get/set
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback