1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-23 07:12:12 -07:00

Avoid char_bit by using sizeof.

Copied from Perforce
 Change: 188279
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2015-09-07 21:47:49 +01:00
parent 9802de9e08
commit 5e39bfee56

View file

@ -8,7 +8,6 @@
* scanning.
*/
#include <limits.h> /* CHAR_BIT */
#include <stdio.h> /* printf */
#include "mpm.h"
@ -245,14 +244,14 @@ static void test(int mode, void *marker)
int main(int argc, char *argv[])
{
void *marker = &marker;
mps_word_t tags[MPS_WORD_WIDTH / CHAR_BIT];
mps_word_t tags[sizeof(mps_word_t)];
size_t i;
int mode;
testlib_init(argc, argv);
/* Work out how many tags to use. */
tag_bits = SizeLog2(MPS_WORD_WIDTH / CHAR_BIT);
tag_bits = SizeLog2(sizeof(mps_word_t));
Insist(TAG_COUNT <= NELEMS(tags));
/* Shuffle the tags. */