From 18a29d7913c45870959b3d4a20f8abc67c20a19b Mon Sep 17 00:00:00 2001 From: Annie Date: Mon, 28 Apr 2025 10:41:43 -0400 Subject: [PATCH] fixed print warnings --- src/symbol_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/symbol_table.c b/src/symbol_table.c index 2fc926c..37fc205 100644 --- a/src/symbol_table.c +++ b/src/symbol_table.c @@ -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);