OSX GUI - Prevent compiler errors when -std=c++11 is switched on

This commit is contained in:
Michael R. Fisher 2013-07-15 16:35:20 -05:00 committed by Michael Fisher
parent 9cb678ebcc
commit 7f6765ece4
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ set_language_preference ()
break;
}
}
NSRange r = { 0, count };
NSRange r = { 0, static_cast<NSUInteger> (count) };
setenv ("LANGUAGE", [[[languages subarrayWithRange:r] componentsJoinedByString:@":"] UTF8String], 0);
cout << "LANGUAGE set to " << getenv ("LANGUAGE") << endl;
}