diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 15:55:02 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-06-09 15:55:02 -0700 |
commit | 992a03be55faf83d794b9ec5e8c4ca7e78c08a9b (patch) | |
tree | 4c3b895b4e8e9808c3ec0e5215b227ef789e8466 /src/upb_string.h | |
parent | ed991c3b300d65dbe6fdb6a1d110cec029b0f5be (diff) |
More decoder work, first attempts at compiling it.
Diffstat (limited to 'src/upb_string.h')
-rw-r--r-- | src/upb_string.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |