From ee442551e1531712226a3a3ba26afff466100bb5 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 07:57:32 +0000 Subject: passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem --- zwgc/text_operations.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zwgc/text_operations.c') diff --git a/zwgc/text_operations.c b/zwgc/text_operations.c index 34f0d4c..16d9047 100644 --- a/zwgc/text_operations.c +++ b/zwgc/text_operations.c @@ -47,7 +47,7 @@ lbreak(string *text_ptr, string result, whats_left; char *p = *text_ptr; - while (*p && !set[*p]) p++; + while (*p && !set[(int)*p]) p++; result = string_CreateFromData(*text_ptr, p - *text_ptr); whats_left = string_Copy(p); @@ -64,7 +64,7 @@ lspan(string *text_ptr, string result, whats_left; char *p = *text_ptr; - while (*p && set[*p]) p++; + while (*p && set[(int)*p]) p++; result = string_CreateFromData(*text_ptr, p - *text_ptr); whats_left = string_Copy(p); @@ -100,7 +100,7 @@ rbreak(string *text_ptr, string text = *text_ptr; char *p = text + strlen(text); - while (text