Skip to content

Commit ce2d7b8

Browse files
committed
Squashed 'avr/cores/MCUdude_corefiles/' changes from a367b8b9..172d7e3b
172d7e3b Fix typo in abs() macro git-subtree-dir: avr/cores/MCUdude_corefiles git-subtree-split: 172d7e3bd43db57ffbe02f815384ad6cdf992f8f
1 parent 963e72a commit ce2d7b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void yield(void);
121121
#undef abs
122122
#endif
123123

124-
#define abs(x) ({ typeof (x) _x = (x); _x > 0 ? _x : -x; })
124+
#define abs(x) ({ typeof (x) _x = (x); _x > 0 ? _x : -_x; })
125125
#define sq(x) ({ typeof (x) _x = (x); _x * _x; })
126126
#define min(a,b) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a < _b ? _a : _b; })
127127
#define max(a,b) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a > _b ? _a : _b; })

0 commit comments

Comments
 (0)