summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Destugues <pulkomandy@pulkomandy.tk>2014-06-09 16:01:21 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2015-03-21 23:23:25 (GMT)
commit120ed97a5e2d808931537a8075f5ce4275586042 (patch)
tree1e4720a452e98a8722000f2bb84e667b794ba01b
parent316e60ef9801031e70611a3d111916c2aea88de8 (diff)
downloadlibcss-120ed97a5e2d808931537a8075f5ce4275586042.tar.gz
libcss-120ed97a5e2d808931537a8075f5ce4275586042.tar.bz2
Fix build with gcc2.
-rw-r--r--test/dump.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/dump.h b/test/dump.h
index 7ffec4f..fe53f69 100644
--- a/test/dump.h
+++ b/test/dump.h
@@ -734,13 +734,14 @@ void dump_bytecode(css_style *style, char **ptr, uint32_t depth)
opcode_t op;
uint32_t value;
uint32_t opv = *((uint32_t *) bytecode);
+ uint32_t i;
ADVANCE(sizeof(opv));
op = getOpcode(opv);
*((*ptr)++) = '|';
- for (uint32_t i = 0; i < depth; i++)
+ for (i = 0; i < depth; i++)
*((*ptr)++) = ' ';
*ptr += sprintf(*ptr, "%s: ", opcode_names[op]);
@@ -2659,10 +2660,10 @@ void dump_font_face(css_font_face *font_face, char **ptr)
uint32_t i;
css_font_face_src *srcs = font_face->srcs;
for (i = 0; i < font_face->n_srcs; ++i) {
+ css_font_face_format format;
*ptr += sprintf(*ptr, "\n| src: ");
- css_font_face_format format =
- css_font_face_src_format(&srcs[i]);
+ format = css_font_face_src_format(&srcs[i]);
*ptr += sprintf(*ptr, "\n| format: ");