mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
5 lines
81 B
C
5 lines
81 B
C
#include "util.h"
|
|
|
|
int wrap(int i, int max) {
|
|
return ((i % max) + max) % max;
|
|
}
|