diff --git a/a1/program.c b/a1/program.c index 775ad4e..5d192f4 100644 --- a/a1/program.c +++ b/a1/program.c @@ -165,7 +165,7 @@ int skip_spaces(int i, char *pointer) { int copy_number(char number[], char *pointer, int i) { int destination_i = 0; while(pointer[i]!='\0'){ - if (!isdigit(pointer[i])&&pointer[i]!='.'&&pointer[i]!=','&&pointer[i]!='-') { + if (!isdigit(pointer[i])&&pointer[i]!='.'&&pointer[i]!='-') { break; } if (pointer[i] == '-' && destination_i > 0) {