Commit c2512d1c authored by Matthias Clasen's avatar Matthias Clasen

Avoid a C99ism

Move variable declarations to the beginning of the block.
https://bugzilla.gnome.org/show_bug.cgi?id=669511
parent 63865720
......@@ -131,9 +131,6 @@ _gtk_css_number_print (const GtkCssNumber *number,
{
char buf[G_ASCII_DTOSTR_BUF_SIZE];
g_return_if_fail (number != NULL);
g_return_if_fail (string != NULL);
const char *names[] = {
/* [GTK_CSS_NUMBER] = */ "",
/* [GTK_CSS_PERCENT] = */ "%",
......@@ -151,6 +148,9 @@ _gtk_css_number_print (const GtkCssNumber *number,
/* [GTK_CSS_TURN] = */ "turn",
};
g_return_if_fail (number != NULL);
g_return_if_fail (string != NULL);
g_ascii_dtostr (buf, sizeof (buf), number->value);
g_string_append (string, buf);
if (number->value != 0.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment