src/buffer.c

changeset 269
591473851c95
parent 259
2f5dea574a75
child 270
3d80d425543b
equal deleted inserted replaced
268:00e88487a654 269:591473851c95
223 223
224 int ucx_buffer_getc(UcxBuffer *buffer) { 224 int ucx_buffer_getc(UcxBuffer *buffer) {
225 if (ucx_buffer_eof(buffer)) { 225 if (ucx_buffer_eof(buffer)) {
226 return EOF; 226 return EOF;
227 } else { 227 } else {
228 int c = buffer->space[buffer->pos]; 228 int c = ((unsigned char*)buffer->space)[buffer->pos];
229 buffer->pos++; 229 buffer->pos++;
230 return c; 230 return c;
231 } 231 }
232 } 232 }
233 233

mercurial