We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f3272ad + bb61ee8 commit fdf0c2bCopy full SHA for fdf0c2b
TESTS/block_device/i2cee/main.cpp
@@ -50,7 +50,7 @@ void test_read_write() {
50
uint8_t *write_block = new uint8_t[block_size];
51
uint8_t *read_block = new uint8_t[block_size];
52
uint8_t *error_mask = new uint8_t[TEST_ERROR_MASK];
53
- unsigned addrwidth = ceil(log(bd.size()-1) / log(16))+1;
+ unsigned addrwidth = ceil(log(float(bd.size()-1)) / log(float(16)))+1;
54
55
for (int b = 0; b < TEST_BLOCK_COUNT; b++) {
56
// Find a random block
0 commit comments