Don't hardcode ptr_bytes

This commit is contained in:
Richard Feldman 2021-06-03 21:33:53 -04:00
parent 1aa286bace
commit 037d41d7c7

View file

@ -305,7 +305,7 @@ pub fn files_to_documentations(
&std_lib,
src_dir.as_path(),
MutMap::default(),
8, // TODO: Is it okay to hardcode ptr_bytes here? I think it should be fine since we'er only type checking (also, 8 => 32bit system)
std::mem::size_of::<usize>(), // This is just type-checking for docs, so "target" doesn't matter
builtin_defs_map,
) {
Ok(loaded) => files_docs.push((loaded.documentation, loaded.interns)),