Skip to content

Commit 5d18e29

Browse files
committed
Fixed warnings
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45894 379a1393-f5fb-40a0-bcee-ef074d9b53f7
1 parent 54bdce2 commit 5d18e29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vice/src/arch/shared/sounddrv/soundcoreaudio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int audio_open(AudioStreamBasicDescription *in)
535535

536536
size = range.mMinimum > frames_in_fragment ? range.mMinimum : frames_in_fragment;
537537

538-
log_message(LOG_DEFAULT, "sound (coreaudio_init): audio frame buffer size in samples min: %f max: %f fragment size: %u, chosen: %d", range.mMinimum, range.mMaximum, frames_in_fragment, size);
538+
log_message(LOG_DEFAULT, "sound (coreaudio_init): audio frame buffer size in samples min: %f max: %f fragment size: %u, chosen: %u", range.mMinimum, range.mMaximum, frames_in_fragment, (unsigned int)size);
539539

540540
/* set the buffer size */
541541
AudioObjectPropertyAddress buffer_size_address = {
@@ -546,12 +546,12 @@ static int audio_open(AudioStreamBasicDescription *in)
546546

547547
err = AudioObjectSetPropertyData(device, &buffer_size_address, 0, NULL, sizeof(UInt32), &size);
548548
if (err) {
549-
log_error(LOG_DEFAULT, "sound (coreaudio_init): error setting buffer size to %d", size);
549+
log_error(LOG_DEFAULT, "sound (coreaudio_init): error setting buffer size to %u", (unsigned int)size);
550550
return -1;
551551
}
552552
err = AudioUnitSetProperty(outputUnit, kAudioUnitProperty_MaximumFramesPerSlice, kAudioUnitScope_Global, 0, &size, sizeof(size));
553553
if (err) {
554-
log_error(LOG_DEFAULT, "sound (coreaudio_init): error setting max frames per slice to %d", size);
554+
log_error(LOG_DEFAULT, "sound (coreaudio_init): error setting max frames per slice to %u", (unsigned int)size);
555555
return -1;
556556
}
557557

0 commit comments

Comments
 (0)