Changeset 8973acd in buchla-68k for libcio/scan.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/scan.c
r7d0d347 r8973acd 38 38 while (maxwide--) { 39 39 40 if ((cp = index(list, ( *gsub)(0))) EQ NULL) {40 if ((cp = index(list, (int8_t)(*gsub)(0))) EQ NULL) { 41 41 42 42 (*gsub)(1); … … 106 106 gsub = getsub; 107 107 108 while ( c = *fmt++) {108 while ((c = *fmt++)) { 109 109 110 110 if (c EQ '%') { … … 180 180 *(int32_t *)(*args++) = lv; 181 181 else 182 **args++ = lv;182 **args++ = (int16_t)lv; 183 183 ++count; 184 184 } … … 220 220 221 221 for (cp = tlist ; (c = *fmt++) != ']' ; ) 222 *cp++ = c;222 *cp++ = (int8_t)c; 223 223 224 224 *cp = 0; … … 236 236 237 237 if (!dontdo) 238 cp = *args++; 238 cp = (int8_t *)*args++; 239 else 240 cp = NULL; /* fix compiler warning */ 239 241 240 242 while (maxwide--) { … … 244 246 245 247 if (lflag ? 246 (index(tlist, c) NE 0) :247 (index(tlist, c) EQ 0)) {248 (index(tlist, (int8_t)c) NE 0) : 249 (index(tlist, (int8_t)c) EQ 0)) { 248 250 249 251 (*gsub)(1); /* unget last character */ … … 252 254 253 255 if (!dontdo) 254 *cp++ = c;256 *cp++ = (int8_t)c; 255 257 } 256 258 … … 269 271 if (!dontdo) { 270 272 271 *(int8_t *)(*args++) = c;273 *(int8_t *)(*args++) = (int8_t)c; 272 274 ++count; 273 275 }
Note:
See TracChangeset
for help on using the changeset viewer.