fixed print warnings

This commit is contained in:
Annie
2025-04-28 10:41:43 -04:00
parent 6777cd2815
commit 18a29d7913

View File

@ -68,10 +68,10 @@ Constant_Stack *Print_Stack() {
printf("Type: %s, Value: NULL", getName(cs->theType));
}
if (cs->theType == stri) {
printf("Type: %s, Value: %s\n", getName(cs->theType), *(char *)(cs->theValue));
printf("Type: %s, Value: %c\n", getName(cs->theType), *(char *)(cs->theValue));
}
if (cs->theType == integ) {
printf("Type: %s, Value: %d\n", getName(cs->theType), (int *)(cs->theValue));
printf("Type: %s, Value: %d\n", getName(cs->theType), *(int *)(cs->theValue));
}
if (cs->theType == chara) {
printf("Type: %s, Value: %c\n", getName(cs->theType), *(char *)cs->theValue);