Skip to content
This repository was archived by the owner on Sep 30, 2021. It is now read-only.

Commit c3bddf0

Browse files
authored
Make swap() a proper function
Partial port of arduino/Arduino#2434
1 parent 07b0a40 commit c3bddf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/Adafruit_GFX.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
//#include "PImage.h"
2727

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

3030
/* TODO
3131
enum RectMode {

0 commit comments

Comments
 (0)