From 15604083c7323a1bcd7a591a6025aca98bd57fd2 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 2 Jan 2010 22:08:25 -0800 Subject: Move string representations back upb.h -> upb_data.h. --- src/upb_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/upb_data.c') diff --git a/src/upb_data.c b/src/upb_data.c index 01acef8..58aee8a 100644 --- a/src/upb_data.c +++ b/src/upb_data.c @@ -74,7 +74,7 @@ static void _upb_string_set_bytelen(upb_strptr s, upb_strlen_t newlen) { upb_strptr upb_string_new() { upb_strptr s; - s.refcounted = malloc(sizeof(upb_refcounted_string)); + s.refcounted = malloc(sizeof(struct upb_refcounted_string)); data_init(s.base, UPB_DATA_HEAPALLOCATED | UPB_DATA_REFCOUNTED); s.refcounted->byte_size = 0; s.refcounted->byte_len = 0; -- cgit v1.2.3