We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
aError
size_t
1 parent a2f783e commit 7cbfb8eCopy full SHA for 7cbfb8e
1 file changed
src/core/common/error.cpp
@@ -81,7 +81,7 @@ const char *ErrorToString(Error aError)
81
"Rejected", // (37) kErrorRejected
82
};
83
84
- return aError < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
+ return static_cast<size_t>(aError) < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
85
}
86
87
} // namespace ot
0 commit comments