Skip to content

Commit

Permalink
Squashed 'avr/cores/MCUdude_corefiles/' changes from a367b8b9a..172d7…
Browse files Browse the repository at this point in the history
…e3bd

172d7e3bd Fix typo in abs() macro

git-subtree-dir: avr/cores/MCUdude_corefiles
git-subtree-split: 172d7e3bd43db57ffbe02f815384ad6cdf992f8f
  • Loading branch information
MCUdude committed Mar 1, 2021
1 parent caf26c7 commit 1f03d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void yield(void);
#undef abs
#endif

#define abs(x) ({ typeof (x) _x = (x); _x > 0 ? _x : -x; })
#define abs(x) ({ typeof (x) _x = (x); _x > 0 ? _x : -_x; })
#define sq(x) ({ typeof (x) _x = (x); _x * _x; })
#define min(a,b) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a < _b ? _a : _b; })
#define max(a,b) ({ typeof (a) _a = (a); typeof (b) _b = (b); _a > _b ? _a : _b; })
Expand Down

0 comments on commit 1f03d12

Please sign in to comment.