diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-04-09 18:06:01 -0700 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-04-09 18:06:01 -0700 |
| commit | 64da4e171d7fa5715b76becde4e8fd40712eaf9f (patch) | |
| tree | 4995c5742fb53bdd9eaec27c0a2f0ac07cae0341 /src/libcore | |
| parent | d8bb08037f9ea7295feb5740a16a6dc1dd810f33 (diff) | |
| download | rust-64da4e171d7fa5715b76becde4e8fd40712eaf9f.tar.gz rust-64da4e171d7fa5715b76becde4e8fd40712eaf9f.zip | |
fmt: Assume that we'll only ever see 32 or 64 bit pointers
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/fmt/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs index 2a7569e3b73..67781b73ae2 100644 --- a/src/libcore/fmt/mod.rs +++ b/src/libcore/fmt/mod.rs @@ -861,8 +861,7 @@ impl<T> Pointer for *const T { // The formats need two extra bytes, for the 0x if cfg!(target_pointer_width = "32") { f.width = Some(10); - } - if cfg!(target_pointer_width = "64") { + } else { f.width = Some(18); } } |
