diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /zwgc/text_operations.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'zwgc/text_operations.c')
-rw-r--r-- | zwgc/text_operations.c | 8 |
1 files changed, 4 insertions, 4 deletions
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<p && !set[p[-1]]) p--; + while (text<p && !set[(int)p[-1]]) p--; result = string_Copy(p); whats_left = string_CreateFromData(text, p - text); @@ -118,7 +118,7 @@ rspan(string *text_ptr, string text = *text_ptr; char *p = text + strlen(text); - while (text<p && set[p[-1]]) p--; + while (text<p && set[(int)p[-1]]) p--; result = string_Copy(p); whats_left = string_CreateFromData(text, p - text); |