Skip to content

Commit 910d849

Browse files
committed
Fix std::abs() usage
Call of overloaded 'abs(unsigned int&)' is ambiguous See https://gcc.gnu.org/gcc-6/porting_to.html#overloaded-abs Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
1 parent 7909894 commit 910d849

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/NonReg/Basics/STLTest/STLTest.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
*/
1111

1212
#include "test_stl.h"
13-
static uint32_t count_pressed = 0;
14-
static uint32_t random_val = 0;
13+
static int32_t count_pressed = 0;
14+
static int32_t random_val = 0;
1515

1616
// Check if a default user button is defined
1717
// If not then define it to pin 2, user can set an other pin.

0 commit comments

Comments
 (0)