# HG changeset patch # User tuomov # Date 1047409302 -3600 # Node ID 672e29bfda3c3cc042ffcc0a75f32a618647de26 # Parent c6deeee169aae3b7ba017a82aa8ca08d605a5ef4 trunk: changeset 51 minor glitch diff -r c6deeee169aa -r 672e29bfda3c tokenizer.c --- a/tokenizer.c Sat Mar 08 15:55:01 2003 +0100 +++ b/tokenizer.c Tue Mar 11 20:01:42 2003 +0100 @@ -854,17 +854,17 @@ char old=0; tokz=tokz_create(); - if (len>0) { + if(len>0){ old=buffer[len-1]; buffer[len-1]='\0'; } tokz->flags|=TOKZ_READ_FROM_BUFFER; tokz->buffer.data=scopy(buffer); - tokz->buffer.len=len>0 ? len : strlen(tokz->buffer.data); + tokz->buffer.len=(len>0 ? (uint)len : strlen(tokz->buffer.data)); tokz->buffer.pos=0; - if (old>0) + if(old>0) buffer[len-1]=old; return tokz;