diff options
Diffstat (limited to 'iconv/loop.c')
-rw-r--r-- | iconv/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/loop.c b/iconv/loop.c index 596f8a6..eac4c75 100644 --- a/iconv/loop.c +++ b/iconv/loop.c @@ -103,10 +103,10 @@ ? (inptr - *inptrp) : (outptr - *outptrp)) # endif # else -# define COUNT_CONVERTED (inptr - *inptrp) +# define COUNT_CONVERTED ((inptr - *inptrp) / MIN_NEEDED_INPUT) # endif # elif MIN_NEEDED_OUTPUT == MAX_NEEDED_OUTPUT -# define COUNT_CONVERTED (outptr - *outptrp) +# define COUNT_CONVERTED ((outptr - *outptrp) / MIN_NEEDED_OUTPUT) # endif #endif |