Skip to content

Commit bb61ee8

Browse files
Ashok RaoAshok Rao
authored andcommitted
Adding explicit type conversion to overloaded log function as ARMCC fails to compile
1 parent f3272ad commit bb61ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/block_device/i2cee/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void test_read_write() {
5050
uint8_t *write_block = new uint8_t[block_size];
5151
uint8_t *read_block = new uint8_t[block_size];
5252
uint8_t *error_mask = new uint8_t[TEST_ERROR_MASK];
53-
unsigned addrwidth = ceil(log(bd.size()-1) / log(16))+1;
53+
unsigned addrwidth = ceil(log(float(bd.size()-1)) / log(float(16)))+1;
5454

5555
for (int b = 0; b < TEST_BLOCK_COUNT; b++) {
5656
// Find a random block

0 commit comments

Comments
 (0)