Mercurial > urweb
comparison src/c/urweb.c @ 1150:151837581b5e
More casting of isprint() arguments
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 06 Feb 2010 13:53:26 -0500 |
parents | 15767031950c |
children | a62ac791f7fb |
comparison
equal
deleted
inserted
replaced
1149:15767031950c | 1150:151837581b5e |
---|---|
2228 s2 += 2; | 2228 s2 += 2; |
2229 } else | 2229 } else |
2230 *s2++ = '\\'; | 2230 *s2++ = '\\'; |
2231 break; | 2231 break; |
2232 default: | 2232 default: |
2233 if (isprint(c)) | 2233 if (isprint((int)c)) |
2234 *s2++ = c; | 2234 *s2++ = c; |
2235 else if (uw_Estrings) { | 2235 else if (uw_Estrings) { |
2236 sprintf(s2, "\\%03o", c); | 2236 sprintf(s2, "\\%03o", c); |
2237 s2 += 4; | 2237 s2 += 4; |
2238 } | 2238 } |
2271 s2 += 2; | 2271 s2 += 2; |
2272 } else | 2272 } else |
2273 *s2++ = '\\'; | 2273 *s2++ = '\\'; |
2274 break; | 2274 break; |
2275 default: | 2275 default: |
2276 if (isprint(c)) | 2276 if (isprint((int)c)) |
2277 *s2++ = c; | 2277 *s2++ = c; |
2278 else if (uw_Estrings) { | 2278 else if (uw_Estrings) { |
2279 sprintf(s2, "\\%03o", c); | 2279 sprintf(s2, "\\%03o", c); |
2280 s2 += 4; | 2280 s2 += 4; |
2281 } | 2281 } |
2319 s2 += 4; | 2319 s2 += 4; |
2320 } else | 2320 } else |
2321 *s2++ = '\\'; | 2321 *s2++ = '\\'; |
2322 break; | 2322 break; |
2323 default: | 2323 default: |
2324 if (isprint(c)) | 2324 if (isprint((int)c)) |
2325 *s2++ = c; | 2325 *s2++ = c; |
2326 else if (uw_Estrings) { | 2326 else if (uw_Estrings) { |
2327 sprintf(s2, "\\\\%03o", c); | 2327 sprintf(s2, "\\\\%03o", c); |
2328 s2 += 5; | 2328 s2 += 5; |
2329 } | 2329 } |