Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Oct 2017 14:44:54 -0700
changeset 11616ed240b398305
parent 11615 f5b657276413
child 11617 8cd666139071
Fixed compiler warning
src/test/SDL_test_memory.c
     1.1 --- a/src/test/SDL_test_memory.c	Thu Oct 12 14:25:07 2017 -0700
     1.2 +++ b/src/test/SDL_test_memory.c	Thu Oct 12 14:44:54 2017 -0700
     1.3 @@ -250,14 +250,14 @@
     1.4      total_allocated = 0;
     1.5      for (index = 0; index < SDL_arraysize(s_tracked_allocations); ++index) {
     1.6          for (entry = s_tracked_allocations[index]; entry; entry = entry->next) {
     1.7 -            SDL_snprintf(line, sizeof(line), "Allocation %d: %lu bytes\n", count, entry->size);
     1.8 +            SDL_snprintf(line, sizeof(line), "Allocation %d: %d bytes\n", count, (int)entry->size);
     1.9              ADD_LINE();
    1.10              /* Start at stack index 1 to skip our tracking functions */
    1.11              for (stack_index = 1; stack_index < SDL_arraysize(entry->stack); ++stack_index) {
    1.12                  if (!entry->stack[stack_index]) {
    1.13                      break;
    1.14                  }
    1.15 -                SDL_snprintf(line, sizeof(line), "\t0x%llx: %s\n", entry->stack[stack_index], entry->stack_names[stack_index]);
    1.16 +                SDL_snprintf(line, sizeof(line), "\t0x%"SDL_PRIX64": %s\n", entry->stack[stack_index], entry->stack_names[stack_index]);
    1.17                  ADD_LINE();
    1.18              }
    1.19              total_allocated += entry->size;