parameter of fscanf changed from "%d" to "%hd" to read a short.
This commit is contained in:
parent
468401cb81
commit
66eabbcddf
|
@ -42,7 +42,7 @@ STATIC cond_p getcondtab(f)
|
|||
fscanf(f,"%d",&l);
|
||||
tab = newcondtab(l);
|
||||
for (i = 0; i < l; i++) {
|
||||
fscanf(f,"%d %d %d",&tab[i].mc_cond,&tab[i].mc_tval,
|
||||
fscanf(f,"%hd %hd %hd",&tab[i].mc_cond,&tab[i].mc_tval,
|
||||
&tab[i].mc_sval);
|
||||
}
|
||||
assert(tab[l-1].mc_cond == DEFAULT);
|
||||
|
|
Loading…
Reference in a new issue