mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 10:38:41 +00:00
Add const to variable
Add const type that was accidently removed.
This commit is contained in:
parent
6e76108e15
commit
39512b4b8a
1 changed files with 9 additions and 9 deletions
|
@ -90,15 +90,15 @@ uint8_t receive_byte()
|
|||
uint32_t receive_uint32()
|
||||
{
|
||||
uint32_t value;
|
||||
uint8_t c_be[8] = { greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc()
|
||||
};
|
||||
const uint8_t c_be[8] = { greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc(),
|
||||
greentea_getc()
|
||||
};
|
||||
const uint8_t c[9] = { c_be[6], c_be[7], c_be[4], c_be[5], c_be[2],
|
||||
c_be[3], c_be[0], c_be[1], '\0' };
|
||||
TEST_HELPER_ASSERT( unhexify( (uint8_t*)&value, c ) != 8 );
|
||||
|
|
Loading…
Reference in a new issue