From 992a03be55faf83d794b9ec5e8c4ca7e78c08a9b Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 9 Jun 2010 15:55:02 -0700 Subject: More decoder work, first attempts at compiling it. --- src/upb_string.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/upb_string.h') diff --git a/src/upb_string.h b/src/upb_string.h index c0d14d5..2c0303d 100644 --- a/src/upb_string.h +++ b/src/upb_string.h @@ -44,7 +44,7 @@ typedef struct _upb_string { // Used if this is a slice of another string. struct _upb_string *src; // Used if this string is referencing external unowned memory. - upb_stomic_refcount_t reader_count; + upb_atomic_refcount_t reader_count; } extra; } upb_string; @@ -126,7 +126,7 @@ INLINE void upb_strcpylen(upb_string *dest, const void *src, upb_strlen_t len) { // Replaces the contents of "dest" with the contents of "src". INLINE void upb_strcpy(upb_string *dest, upb_string *src) { - upb_strcpylen(dest, upb_string_getrobuf(src), upb_strlen(src)); + upb_strcpylen(dest, upb_string_getrobuf(src), upb_string_len(src)); upb_string_endread(src); } -- cgit v1.2.3