mirror of
https://github.com/NickHu/sway
synced 2024-12-29 22:23:46 +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;
|
|
}
|