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:
parent
9802de9e08
commit
5e39bfee56
1 changed files with 2 additions and 3 deletions
|
|
@ -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 = ▮
|
||||
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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue