Oops! Missed something in the refactor for arrays.

This commit is contained in:
Curle 2020-11-21 02:37:01 +00:00
parent cf5f58f1bc
commit 8d2f98aa53
Signed by: TheCurle
GPG Key ID: 2F2E62F0DA69A5AE

View File

@ -490,9 +490,9 @@ void AsNewSymb(int ID) {
for(int i = 0; i < Symbols[ID].Length; i++) {
switch(TypeSize) {
case 1: fprintf(OutputFile, "%s:\t.byte\t0\n", Symbols[ID].Name); break;
case 4: fprintf(OutputFile, "%s:\t.long\t0\n", Symbols[ID].Name); break;
case 8: fprintf(OutputFile, "%s:\t.quad\t0\n", Symbols[ID].Name); break;
case 1: fprintf(OutputFile, "\t.byte\t0\n", Symbols[ID].Name); break;
case 4: fprintf(OutputFile, "\t.long\t0\n", Symbols[ID].Name); break;
case 8: fprintf(OutputFile, "\t.quad\t0\n", Symbols[ID].Name); break;
default: DieDecimal("Unknown type in AsNewSymbol", TypeSize); break;
}
}