From c1775926934555df4b344dbb822e6dbccf81cd10 Mon Sep 17 00:00:00 2001 From: solar Date: Tue, 13 Jul 2010 08:12:22 +0000 Subject: [PATCH] Prefix / postfix error screwing up any code using ungetc(). git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@437 546481bc-9713-0410-bf18-d3337bbf4a3e --- functions/stdio/fgetc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/stdio/fgetc.c b/functions/stdio/fgetc.c index 1a90eb9..5837a74 100644 --- a/functions/stdio/fgetc.c +++ b/functions/stdio/fgetc.c @@ -20,7 +20,7 @@ int fgetc( struct _PDCLIB_file_t * stream ) } if ( stream->ungetidx > 0 ) { - return stream->ungetbuf[ stream->ungetidx-- ]; + return stream->ungetbuf[ --(stream->ungetidx) ]; } return stream->buffer[stream->bufidx++]; } -- 2.30.2