artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c22ab
)
Fix sign compare bug introduced when rnum() was redefined to use
author
millert
<millert@openbsd.org>
Wed, 20 May 2015 20:26:00 +0000
(20:26 +0000)
committer
millert
<millert@openbsd.org>
Wed, 20 May 2015 20:26:00 +0000
(20:26 +0000)
arc4random_uniform(). From pjanzen@, OK deraadt@
games/backgammon/backgammon/extra.c
patch
|
blob
|
history
diff --git
a/games/backgammon/backgammon/extra.c
b/games/backgammon/backgammon/extra.c
index
5b91bb4
..
877db77
100644
(file)
--- a/
games/backgammon/backgammon/extra.c
+++ b/
games/backgammon/backgammon/extra.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: extra.c,v 1.
6 2009/10/27 23:59:23 deraad
t Exp $ */
+/* $OpenBSD: extra.c,v 1.
7 2015/05/20 20:26:00 miller
t Exp $ */
/*
* Copyright (c) 1980, 1993
@@
-165,7
+165,7
@@
dblgood()
#endif
/* double if 2-3 moves ahead */
- if (n >
10 + rnum(7
))
+ if (n >
(int)(10 + rnum(7)
))
return(1);
return(0);
}