Skip to content

Commit

Permalink
Merge branch 'master' into gencode2
Browse files Browse the repository at this point in the history
  • Loading branch information
haberman committed Jul 11, 2017
2 parents 1278ff8 + 0af9285 commit 6eb489a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion upb/bindings/lua/msg.c
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions upb/msg.h
Expand Up @@ -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
Expand Down

0 comments on commit 6eb489a

Please sign in to comment.