Skip to content

Commit 39b9635

Browse files
committed
minor change in atomic bit vector -- use uint8 as a word, less conflicts in run-time?
1 parent e248ce0 commit 39b9635

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

atomic_bit_vector.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
#include <assert.h>
2525
#include <stdlib.h>
2626
#include <memory.h>
27+
#include <stdint.h>
2728
#include <algorithm>
2829
#include "mem_file_checker-inl.h"
2930

3031
class AtomicBitVector {
3132
public:
32-
typedef unsigned long long word_t;
33+
typedef uint8_t word_t;
3334

3435
AtomicBitVector(size_t size = 0): size_(size) {
3536
num_words_ = ((size + kBitsPerWord - 1) / kBitsPerWord);

0 commit comments

Comments
 (0)