Mercurial > emacs
comparison src/coding.c @ 90336:f0338dbf2276
(decode_coding): Fix previous change.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 02 Mar 2006 06:54:30 +0000 |
| parents | fe3d40222417 |
| children | bba59a8cdae0 |
comparison
equal
deleted
inserted
replaced
| 90335:aa91709ce7ed | 90336:f0338dbf2276 |
|---|---|
| 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 != CODING_RESULT_INSUFFICIENT_MEM); | 6188 && (coding->result == CODING_RESULT_SUCCESS |
| 6189 || coding->result == CODING_RESULT_INVALID_SRC)); | |
| 6189 | 6190 |
| 6190 if (carryover > 0) | 6191 if (carryover > 0) |
| 6191 { | 6192 { |
| 6192 coding_set_destination (coding); | 6193 coding_set_destination (coding); |
| 6193 coding->charbuf_used = carryover; | 6194 coding->charbuf_used = carryover; |
