diff --git a/ext/ox/parse.c b/ext/ox/parse.c index 5ad225a..92db8b3 100644 --- a/ext/ox/parse.c +++ b/ext/ox/parse.c @@ -167,7 +167,7 @@ ox_parse(char *xml, size_t len, ParseCallbacks pcb, char **endp, Options options helper_stack_cleanup(&pi.helpers); return Qnil; } - pi.s++; // past < + pi.s++; // past < switch (*pi.s) { case '?': // processing instruction pi.s++; diff --git a/ext/ox/sax_buf.c b/ext/ox/sax_buf.c index fba290f..f8e9dc6 100644 --- a/ext/ox/sax_buf.c +++ b/ext/ox/sax_buf.c @@ -79,7 +79,7 @@ int ox_sax_buf_read(Buf buf) { } else { shift = buf->pro - buf->head - 1; // leave one character so we cab backup one } - if (0 >= shift) { /* no space left so allocate more */ + if (0 >= shift) { /* no space left so allocate more */ char *old = buf->head; size_t size = buf->end - buf->head + BUF_PAD; diff --git a/ext/ox/slotcache.c b/ext/ox/slotcache.c index 2680fb8..c77b196 100644 --- a/ext/ox/slotcache.c +++ b/ext/ox/slotcache.c @@ -82,8 +82,8 @@ slot_cache_get(SlotCache cache, const char *key, VALUE **slot, const char **keyp orig->key = form_key(key); orig->value = Qundef; } - } else { /* not exact match but on the path */ - if (0 != cache->key) { /* there is a key/value here already */ + } else { /* not exact match but on the path */ + if (0 != cache->key) { /* there is a key/value here already */ if (depth == *cache->key || (255 <= depth && 0 == strncmp(cache->key, key, depth) && '\0' == cache->key[depth])) { /* key belongs here */ continue;