mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Silence compiler warning in HasTranslatedDocumentation function
This commit is contained in:
@@ -11228,7 +11228,7 @@ BOOL HasTranslatedDocumentation(const char* language)
|
||||
{
|
||||
// hardcoded list of languages for which a translated documentation exists
|
||||
const char* supportedLanguages[] = { "en", "ru", "zh-cn"};
|
||||
for (int i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
|
||||
for (size_t i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
|
||||
{
|
||||
if (strcmp(language, supportedLanguages[i]) == 0)
|
||||
return TRUE;
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace VeraCrypt
|
||||
{
|
||||
// hardcoded list of languages for which a translated documentation exists
|
||||
const char* supportedLanguages[] = { "en", "ru", "zh-cn"};
|
||||
for (int i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
|
||||
for (size_t i = 0; i < sizeof(supportedLanguages) / sizeof(supportedLanguages[0]); i++)
|
||||
{
|
||||
if (strcmp(language, supportedLanguages[i]) == 0)
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user