Skip to content

Commit

Permalink
quiet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phoddie committed Sep 20, 2024
1 parent eaac97a commit f5a249f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xs/sources/xsProfile.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2017 Moddable Tech, Inc.
* Copyright (c) 2016-2024 Moddable Tech, Inc.
*
* This file is part of the Moddable SDK Runtime.
*
Expand Down Expand Up @@ -404,7 +404,7 @@ void fxPrintProfiler(txMachine* the, void* stream)
timer = time(NULL);
tm_info = localtime(&timer);
strftime(buffer, 22, "XS-%y-%m-%d-%H-%M-%S-", tm_info);
snprintf(name, sizeof(name), "%s%03llu.cpuprofile", buffer, (profiler->stop / 1000) % 1000);
snprintf(name, sizeof(name), "%s%03llu.cpuprofile", buffer, (long long unsigned int)((profiler->stop / 1000) % 1000));
file = fopen(name, "w");
}

Expand Down Expand Up @@ -463,7 +463,7 @@ void fxPrintProfiler(txMachine* the, void* stream)
}
recordIndex++;
}
fprintf(file, "],\"startTime\":%llu,\"endTime\":%llu,", fxTicksToMicroseconds(profiler->start), fxTicksToMicroseconds(profiler->when));
fprintf(file, "],\"startTime\":%llu,\"endTime\":%llu,", (long long unsigned int)fxTicksToMicroseconds(profiler->start), (long long unsigned int)fxTicksToMicroseconds(profiler->when));
#ifdef mxMetering
fprintf(file, "\"startMeter\":%llu,\"endMeter\":%llu,", profiler->startMeter, the->meterIndex);
#endif
Expand All @@ -485,7 +485,7 @@ void fxPrintProfiler(txMachine* the, void* stream)
txProfilerSample* sample = profiler->samples + sampleIndex;
if (sampleIndex > 0)
fprintf(file, ",");
fprintf(file, "%llu", fxTicksToMicroseconds(sample->delta));
fprintf(file, "%llu", (long long unsigned int)fxTicksToMicroseconds(sample->delta));
sampleIndex++;
}
}
Expand Down

0 comments on commit f5a249f

Please sign in to comment.