diff options
-rw-r--r-- | core/gmathlib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/gmathlib.c b/core/gmathlib.c index b3e53b8..a75dae2 100644 --- a/core/gmathlib.c +++ b/core/gmathlib.c @@ -252,7 +252,7 @@ gmathsymbol_new (GMathContext *context, gchar *type) symbol->type = g_strdup (type); symbol->value = NULL; - symbol->children = (void**)g_new0 (GMathSymbol*, template->children_count); + symbol->children = (void**) g_new0 (GMathSymbol*, template->children_count); symbol->parent = NULL; @@ -277,14 +277,14 @@ gmathsymbol_new_array (GMathContext *context, guint hsize, guint vsize, array = g_new (GMathArray, 1); symbol->children = g_new0 (void*, 1); - symbol->children[0] = (void*)array; + symbol->children[0] = (void*) array; array->hsize = hsize; array->vsize = vsize; array->children = contents; - for(i = 0; i < vsize*hsize; i++) + for (i = 0; i < vsize*hsize; i++) array->children[i]->parent = array; return symbol; @@ -301,11 +301,11 @@ gmathsymbol_free (GMathSymbol *symbol) if (!symbol) return; - if(strcmp (symbol->type, "array") == 0) + if (strcmp (symbol->type, "array") == 0) { - array = (GMathArray*)symbol->children[0]; + array = (GMathArray*) symbol->children[0]; arraysize = array->hsize * array->vsize; - for(i = 0; i < arraysize; i++) + for (i = 0; i < arraysize; i++) gmathsymbol_free (array->children[i]); g_free (array); } |