Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /