mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-11 22:45:30 +00:00
Remove use of C99 construct
This is an LTS branch, C99 isn't allowed yet, it breaks versions of MSVC that we still support for this branch. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
09ac297f7f
commit
253b0de23d
|
@ -1844,7 +1844,8 @@ static void mbedtls_ssl_cf_memcpy_if_eq( unsigned char *dst,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* dst[i] = c1 != c2 ? dst[i] : src[i] */
|
/* dst[i] = c1 != c2 ? dst[i] : src[i] */
|
||||||
for( size_t i = 0; i < len; i++ )
|
size_t i;
|
||||||
|
for( i = 0; i < len; i++ )
|
||||||
dst[i] = ( dst[i] & mask ) | ( src[i] & ~mask );
|
dst[i] = ( dst[i] & mask ) | ( src[i] & ~mask );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue