Skip to content

Commit 7ec1663

Browse files
committed
FPGA_CI_TEST_SHIELD: C++11 fix
1 parent 5f8b966 commit 7ec1663

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/testing/COMPONENT_FPGA_CI_TEST_SHIELD/MbedTester.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ class MbedTesterBlockDevice : public BlockDevice {
185185

186186
uint8_t cmd[] = {
187187
0x0B, // Fast read
188-
(addr >> (2 * 8)) & 0xFF, // Address
189-
(addr >> (1 * 8)) & 0xFF,
190-
(addr >> (0 * 8)) & 0xFF,
188+
(uint8_t)(addr >> (2 * 8)), // Address
189+
(uint8_t)(addr >> (1 * 8)),
190+
(uint8_t)(addr >> (0 * 8)),
191191
0x00 // Dummy
192192
};
193193
_write((char *)cmd, sizeof(cmd), NULL, 0);

0 commit comments

Comments
 (0)