diff options
author | dholland <dholland@NetBSD.org> | 2014-03-22 23:16:21 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2014-03-22 23:16:21 +0000 |
commit | 90c91fd6e16e90924f93dc82972a114cefaf7447 (patch) | |
tree | 0123cede892dea2f6ad21ee690ac47b9bf0a67a1 /battlestar | |
parent | ea2779eda360ab8f96d2c84696b48fb5834859e9 (diff) | |
download | bsdgames-darwin-90c91fd6e16e90924f93dc82972a114cefaf7447.tar.gz bsdgames-darwin-90c91fd6e16e90924f93dc82972a114cefaf7447.tar.zst bsdgames-darwin-90c91fd6e16e90924f93dc82972a114cefaf7447.zip |
Use CHAR_BIT, not 8.
Diffstat (limited to 'battlestar')
-rw-r--r-- | battlestar/extern.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/battlestar/extern.h b/battlestar/extern.h index a97aa3d7..74191131 100644 --- a/battlestar/extern.h +++ b/battlestar/extern.h @@ -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)) |