aboutsummaryrefslogtreecommitdiff
path: root/src/main.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.s')
-rw-r--r--src/main.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.s b/src/main.s
index 196515f..bad6042 100644
--- a/src/main.s
+++ b/src/main.s
@@ -16,6 +16,7 @@ _start:
# Sort
movq %rax, %rdi # Select address of array
movq %r15, %rsi # Select length of array
+ decq %rsi
movq $1, %rdx # Sort by key 1
call qsort # Sort the array