Skip to content

Commit 25a1a2a

Browse files
committed
use int instead char buffer
1 parent 059f83e commit 25a1a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter04/4-10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void clearMemory(void);
3838
int sp; /* next free stack position */
3939
double val[MAXVAL]; /* value stack */
4040
double mem[MAXVAR]; /* variables values */
41-
char buf[BUFSIZE]; /* buffer from ungetch */
41+
int buf[BUFSIZE]; /* buffer from ungetch */
4242
int bufp; /* next free position in buf */
4343
int variable; /* current input variable */
4444
double printed; /* last printed value */

0 commit comments

Comments
 (0)