[cpp] Fixed compile error of incorrect printf format types, zu instead of lu (reported by VS19 but not VC17 in UE4).

This commit is contained in:
Harald Csaszar 2021-07-13 15:54:00 +02:00
parent fd6dd42d66
commit ba07ea9f91

View File

@ -44,8 +44,8 @@ void spine::spDebug_printSkeletonData(SkeletonData *skeletonData) {
void _spDebug_printTimelineBase(Timeline *timeline) {
printf(" Timeline %s:\n", timeline->getRTTI().getClassName());
printf(" frame count: %lu\n", timeline->getFrameCount());
printf(" frame entries: %lu\n", timeline->getFrameEntries());
printf(" frame count: %zu\n", timeline->getFrameCount());
printf(" frame entries: %zu\n", timeline->getFrameEntries());
printf(" frames: ");
spDebug_printFloats(timeline->getFrames());
printf("\n");
@ -67,7 +67,7 @@ void spine::spDebug_printTimeline(Timeline *timeline) {
void spine::spDebug_printAnimation(Animation *animation) {
int i, n;
printf("Animation %s: %lu timelines\n", animation->getName().buffer(), animation->getTimelines().size());
printf("Animation %s: %zu timelines\n", animation->getName().buffer(), animation->getTimelines().size());
for (i = 0, n = animation->getTimelines().size(); i < n; i++) {
Timeline *timeline = animation->getTimelines()[i];
@ -115,7 +115,7 @@ void spine::spDebug_printFloats(float *values, int numFloats) {
void spine::spDebug_printFloats(Vector<float> &values) {
int i, n;
printf("(%lu) [", values.size());
printf("(%zu) [", values.size());
for (i = 0, n = values.size(); i < n; i++) {
printf("%f, ", values[i]);
}