Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/battlestar Use CHAR_BIT, not 8.
details: https://anonhg.NetBSD.org/src/rev/886f5bbc1709
branches: trunk
changeset: 327985:886f5bbc1709
user: dholland <dholland%NetBSD.org@localhost>
date: Sat Mar 22 23:16:21 2014 +0000
description:
Use CHAR_BIT, not 8.
diffstat:
games/battlestar/extern.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r dc41c9beff7c -r 886f5bbc1709 games/battlestar/extern.h
--- a/games/battlestar/extern.h Sat Mar 22 23:10:36 2014 +0000
+++ b/games/battlestar/extern.h Sat Mar 22 23:16:21 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.33 2011/08/26 06:18:17 dholland Exp $ */
+/* $NetBSD: extern.h,v 1.34 2014/03/22 23:16:21 dholland Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,10 +38,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <time.h>
#include <unistd.h>
-#define BITS (8 * sizeof (int))
+#define BITS (CHAR_BIT * sizeof (int))
#define OUTSIDE (position > 68 && position < 246 && position != 218)
#define rnd(x) (rand() % (x))
Home |
Main Index |
Thread Index |
Old Index