summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 16a9af8..ea850aa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1249,7 +1249,7 @@ impl fmt::Display for Instruction {
// hint bits of `00` indicate no prefetch hint
if hint != 0 {
f.write_str(
- [".nt1", ".nt2", ".nt3"][hint as usize]
+ [".nt1", ".nt2", ".nt3"][hint as usize - 1]
)?;
}
}