comparison src/coding.c @ 90327:fe3d40222417

(decode_coding): Fix the condition of terminating the decoding loop.
author Kenichi Handa <handa@m17n.org>
date Tue, 28 Feb 2006 11:05:39 +0000
parents c5406394f567
children f0338dbf2276
comparison
equal deleted inserted replaced
90326:9dce7eee1abf 90327:fe3d40222417
6183 for (i = 0; i < carryover; i++) 6183 for (i = 0; i < carryover; i++)
6184 coding->charbuf[i] 6184 coding->charbuf[i]
6185 = coding->charbuf[coding->charbuf_used - carryover + i]; 6185 = coding->charbuf[coding->charbuf_used - carryover + i];
6186 } 6186 }
6187 while (coding->consumed < coding->src_bytes 6187 while (coding->consumed < coding->src_bytes
6188 && ! coding->result); 6188 && coding->result != CODING_RESULT_INSUFFICIENT_MEM);
6189 6189
6190 if (carryover > 0) 6190 if (carryover > 0)
6191 { 6191 {
6192 coding_set_destination (coding); 6192 coding_set_destination (coding);
6193 coding->charbuf_used = carryover; 6193 coding->charbuf_used = carryover;