COMMON: Correctly specialize unknownKeyError for int.

This commit is contained in:
Henrik "Henke37" Andersson 2021-02-21 15:10:18 +01:00 committed by Thierry Crozat
parent f8facede40
commit 6b2bf785a4
2 changed files with 14 additions and 0 deletions

View file

@ -81,6 +81,16 @@ template<> void unknownKeyError(long unsigned key) {
error("Unknown key \"%lu\"", key);
}
template<>
void unknownKeyError(signed int key) {
error("Unknown key \"%i\"", key);
}
template<>
void unknownKeyError(unsigned int key) {
error("Unknown key \"%u\"", key);
}
template<> void unknownKeyError(long long signed key) {
error("Unknown key \"%lli\"", key);
}

View file

@ -326,6 +326,10 @@ void NORETURN_PRE unknownKeyError(long signed key) NORETURN_POST;
template<>
void NORETURN_PRE unknownKeyError(long unsigned key) NORETURN_POST;
template<>
void NORETURN_PRE unknownKeyError(signed int key) NORETURN_POST;
template<>
void NORETURN_PRE unknownKeyError(unsigned int key) NORETURN_POST;
template<>
void NORETURN_PRE unknownKeyError(long long signed key) NORETURN_POST;
template<>
void NORETURN_PRE unknownKeyError(long long unsigned key) NORETURN_POST;