mirror of
https://github.com/espressif/openthread.git
synced 2026-11-02 12:33:22 +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
|
"Rejected", // (37) kErrorRejected
|
||||||
};
|
};
|
||||||
|
|
||||||
return aError < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
|
return static_cast<size_t>(aError) < GetArrayLength(kErrorStrings) ? kErrorStrings[aError] : "UnknownErrorType";
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ot
|
} // namespace ot
|
||||||
|
|||||||
Reference in New Issue
Block a user