Update to 1.11.0-beta1
This commit is contained in:
@@ -304,13 +304,13 @@ struct HeaderFileWriter : HeaderWriter, FileWriter {
|
||||
/* Find the plural form with the most amount of cases. */
|
||||
int max_plural_forms = 0;
|
||||
for (uint i = 0; i < lengthof(_plural_forms); i++) {
|
||||
max_plural_forms = max(max_plural_forms, _plural_forms[i].plural_count);
|
||||
max_plural_forms = std::max(max_plural_forms, _plural_forms[i].plural_count);
|
||||
}
|
||||
|
||||
fprintf(this->fh,
|
||||
"\n"
|
||||
"static const uint LANGUAGE_PACK_VERSION = 0x%X;\n"
|
||||
"static const uint LANGUAGE_MAX_PLURAL = %d;\n"
|
||||
"static const uint LANGUAGE_MAX_PLURAL = %u;\n"
|
||||
"static const uint LANGUAGE_MAX_PLURAL_FORMS = %d;\n\n",
|
||||
(uint)data.Version(), (uint)lengthof(_plural_forms), max_plural_forms
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user