diff --git a/program.c b/program.c index 3d5a7b4..0c88981 100644 --- a/program.c +++ b/program.c @@ -130,8 +130,8 @@ int read_item(struct pizza* item){ i=0; //printf("Comma %d\n",comma); //printf("Comma number %d\n",comma_number); - if(comma!=1)return 0; - if(comma_number!=2)return 0; + if(comma>1)return 0; + if(comma_number>2)return 0; float value = strtof(line2,NULL); if (value == 0.0F){ return 0;