Skip to content
Snippets Groups Projects
Commit 1f3e94f6 authored by Holger Obermaier's avatar Holger Obermaier
Browse files

Avoid unneccessary type cast

parent 140e6121
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,8 @@ int read_objects_from_intputfile(const char *input_file, char **varname_list, ch
if (((strstr(cline, ":")) && ((strstr(cline, "\"")))) &&
(!(strstr(cline, "comment")) && !(strstr(cline, "Comment")))) {
//count number of double quotes and colon signs
occurence_doublequotes = count_occure_charinstring(cline, (const char *)"\"");
occurence_commas = count_occure_charinstring(cline, (const char *)",");
occurence_doublequotes = count_occure_charinstring(cline, "\"");
occurence_commas = count_occure_charinstring(cline, ",");
//only two pais of double quotes are allowed per line
switch (occurence_doublequotes) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment