From 90c91fd6e16e90924f93dc82972a114cefaf7447 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 22 Mar 2014 23:16:21 +0000 Subject: Use CHAR_BIT, not 8. --- battlestar/extern.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'battlestar') 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 #include #include +#include #include #include -#define BITS (8 * sizeof (int)) +#define BITS (CHAR_BIT * sizeof (int)) #define OUTSIDE (position > 68 && position < 246 && position != 218) #define rnd(x) (rand() % (x)) -- cgit v1.2.3-56-ge451