src/stdlib/SDL_string.c
changeset 11451 b96f291a772e
parent 11265 9152aa462a82
child 11610 6dea196ecbcb
equal deleted inserted replaced
11450:9bafd3aa56e9 11451:b96f291a772e
  1195                         radix = 16;
  1195                         radix = 16;
  1196                     }
  1196                     }
  1197                     /* Fall through to unsigned handling */
  1197                     /* Fall through to unsigned handling */
  1198                 case 'u':
  1198                 case 'u':
  1199                     if (inttype == DO_LONGLONG) {
  1199                     if (inttype == DO_LONGLONG) {
  1200                         Uint64 value;
  1200                         Uint64 value = 0;
  1201                         advance = SDL_ScanUnsignedLongLong(text, radix, &value);
  1201                         advance = SDL_ScanUnsignedLongLong(text, radix, &value);
  1202                         text += advance;
  1202                         text += advance;
  1203                         if (advance && !suppress) {
  1203                         if (advance && !suppress) {
  1204                             Uint64 *valuep = va_arg(ap, Uint64 *);
  1204                             Uint64 *valuep = va_arg(ap, Uint64 *);
  1205                             *valuep = value;
  1205                             *valuep = value;
  1206                             ++retval;
  1206                             ++retval;
  1207                         }
  1207                         }
  1208                     } else {
  1208                     } else {
  1209                         unsigned long value;
  1209                         unsigned long value = 0;
  1210                         advance = SDL_ScanUnsignedLong(text, radix, &value);
  1210                         advance = SDL_ScanUnsignedLong(text, radix, &value);
  1211                         text += advance;
  1211                         text += advance;
  1212                         if (advance && !suppress) {
  1212                         if (advance && !suppress) {
  1213                             switch (inttype) {
  1213                             switch (inttype) {
  1214                             case DO_SHORT:
  1214                             case DO_SHORT:
  1238                     }
  1238                     }
  1239                     done = SDL_TRUE;
  1239                     done = SDL_TRUE;
  1240                     break;
  1240                     break;
  1241                 case 'p':
  1241                 case 'p':
  1242                     {
  1242                     {
  1243                         uintptr_t value;
  1243                         uintptr_t value = 0;
  1244                         advance = SDL_ScanUintPtrT(text, 16, &value);
  1244                         advance = SDL_ScanUintPtrT(text, 16, &value);
  1245                         text += advance;
  1245                         text += advance;
  1246                         if (advance && !suppress) {
  1246                         if (advance && !suppress) {
  1247                             void **valuep = va_arg(ap, void **);
  1247                             void **valuep = va_arg(ap, void **);
  1248                             *valuep = (void *) value;
  1248                             *valuep = (void *) value;