Skip to content

Commit

Permalink
Make swap() a proper function
Browse files Browse the repository at this point in the history
Partial port of arduino/Arduino#2434
  • Loading branch information
facchinm authored Sep 17, 2019
1 parent 57e2cfa commit 6941d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/Adafruit_GFX.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#warning "The SD library was not found. loadImage() and image() won't be supported."
#endif

#define swap(a, b) { int16_t t = a; a = b; b = t; }
inline void swap(int16_t &a, int16_t &b) { int16_t t = a; a = b; b = t; }

/* TODO
enum RectMode {
Expand Down

0 comments on commit 6941d00

Please sign in to comment.