mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 11:05:37 +00:00
Add exception in check when high error code == 0
Although not commonly done, it should be possible to add error codes together even if the high level error code is equal to zero. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
parent
3f613c17c1
commit
ac33a3ab12
|
@ -298,7 +298,7 @@ void mbedtls_test_err_add_check( int high, int low,
|
|||
* h = high level error code (includes high and module error codes).
|
||||
* l = low level error code.
|
||||
*/
|
||||
if ( high > -0x1000 ) // high < 0001000000000000
|
||||
if ( high > -0x1000 && high != 0 ) // high < 0001000000000000
|
||||
{
|
||||
mbedtls_test_fail( "'high' is not a high-level error code",
|
||||
line, file );
|
||||
|
|
Loading…
Reference in a new issue