Skip to content

Commit 74d42dd

Browse files
committedDec 6, 2019
fix(DefaultConfig): const overflow on 32-bit
Fixes #10 Signed-off-by: Eliza Weisman <[email protected]>
1 parent b601f5d commit 74d42dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/cfg.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ impl Config for DefaultConfig {
128128
#[cfg(target_pointer_width = "64")]
129129
const MAX_THREADS: usize = 4096;
130130
#[cfg(target_pointer_width = "32")]
131-
const MAX_THREADS: usize = 0x7F; // TODO(eliza):
131+
// TODO(eliza): can we find enough bits to give 32-bit platforms more threads?
132+
const MAX_THREADS: usize = 128;
132133

133134
const MAX_PAGES: usize = WIDTH / 2;
134135
}

0 commit comments

Comments
 (0)
Please sign in to comment.