trunk: changeset 51

Tue, 11 Mar 2003 20:01:42 +0100

author
tuomov
date
Tue, 11 Mar 2003 20:01:42 +0100
changeset 47
672e29bfda3c
parent 46
c6deeee169aa
child 48
f66f0f27beae

trunk: changeset 51
minor glitch

tokenizer.c file | annotate | diff | comparison | revisions
--- 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;

mercurial