Skip to content
This repository was archived by the owner on Apr 8, 2022. It is now read-only.

Commit f0f7e69

Browse files
Sanity Check
Letting you put a size of more than 8 would not do much well. (todo: get a 8k television)
1 parent 3425008 commit f0f7e69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ int main(int argc, char** argv)
2525
}
2626

2727
if(argc == 3){
28-
scaler = atoi(argv[2]);
28+
int num = atoi(argv[2])
29+
scaler = num <= 1 ? 1 : num & 8;
2930
}
3031

3132
/* Easter Egg */

0 commit comments

Comments
 (0)