Skip to content

Commit 9774e6c

Browse files
committed
"Bulls and Cows": fix macro bug
1 parent 4ea52d2 commit 9774e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/299.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string.h>
44
#include <assert.h>
55

6-
#define min(a,b) (a)<(b)?(a):(b)
6+
#define min(a,b) ((a)<(b)?(a):(b))
77
char* getHint(char* secret, char* guess) {
88
char hashs[10] = { 0 };
99
char hashg[10] = { 0 };

0 commit comments

Comments
 (0)