TTS: Fix compiler warning

This commit is contained in:
Matthew Duggan 2020-10-10 15:11:49 +09:00
parent e3a8524818
commit c71ac4748b

View File

@ -240,7 +240,7 @@ int MacOSXTextToSpeechManager::getDefaultVoice() {
NSString *defaultVoice = [NSSpeechSynthesizer defaultVoice];
if (defaultVoice == nil)
return 0;
for (int i = 0 ; i < _ttsState->_availableVoices.size() ; ++i) {
for (unsigned int i = 0 ; i < _ttsState->_availableVoices.size() ; ++i) {
if ([defaultVoice isEqualToString:(NSString*)(_ttsState->_availableVoices[i].getData())])
return i;
}