commit | 5308f470384b48cc77feac11dec6c8eb5eff8cb5 | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Fri Jul 21 14:16:52 2017 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Fri Jul 28 13:15:57 2017 +0100 |
tree | 3cb2675aaf5e3aa9605ebda3d0181b442c6b85a5 | |
parent | 1fbc5fb027d8d47e88aa65202e33c3944f2d080a [diff] [blame] |
Fix implementation-defined integer conversion "When an integer is demoted to a signed integer with smaller size, or an unsigned integer is converted to its corresponding signed integer, if the value cannot be represented the result is implementation-defined."
diff --git a/library/x509_crt.c b/library/x509_crt.c index 3652a8c..1ca61e5 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c
@@ -2182,7 +2182,7 @@ if( ret != 0 ) { - *flags = (uint32_t) -1; + *flags = -1; return( ret ); }