Adding explicit type conversion to overloaded log function as ARMCC fails to compile

pull/10711/head
Ashok Rao 2017-03-21 17:24:46 +00:00
parent f3272ad5ba
commit bb61ee8da8
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ void test_read_write() {
uint8_t *write_block = new uint8_t[block_size]; uint8_t *write_block = new uint8_t[block_size];
uint8_t *read_block = new uint8_t[block_size]; uint8_t *read_block = new uint8_t[block_size];
uint8_t *error_mask = new uint8_t[TEST_ERROR_MASK]; uint8_t *error_mask = new uint8_t[TEST_ERROR_MASK];
unsigned addrwidth = ceil(log(bd.size()-1) / log(16))+1; unsigned addrwidth = ceil(log(float(bd.size()-1)) / log(float(16)))+1;
for (int b = 0; b < TEST_BLOCK_COUNT; b++) { for (int b = 0; b < TEST_BLOCK_COUNT; b++) {
// Find a random block // Find a random block