mirror of
https://github.com/espressif/openthread.git
synced 2026-10-25 08:43:48 +00:00
[error] cast aError to size_t (#11533)
This commit is contained in:
@@ -81,7 +81,7 @@ const char *ErrorToString(Error aError)
|
||||
"Rejected", // (37) kErrorRejected
|
||||
};
|
||||
|
||||
return aError < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
|
||||
return static_cast<size_t>(aError) < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
|
||||
}
|
||||
|
||||
} // namespace ot
|
||||
|
||||
Reference in New Issue
Block a user