]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: align gomemeq return value correctly
authorKeith Randall <khr@golang.org>
Thu, 17 Jul 2014 00:16:12 +0000 (17:16 -0700)
committerKeith Randall <khr@golang.org>
Thu, 17 Jul 2014 00:16:12 +0000 (17:16 -0700)
Fixes #8378

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/114880043

src/pkg/runtime/asm_amd64p32.s

index 71207f06988080650a5b1ce79a5697bb45c4622d..7facd10b38da37d5b7344a17dd6ee62d5a90f9b1 100644 (file)
@@ -730,12 +730,12 @@ TEXT runtime·memeq(SB),NOSPLIT,$0-12
        MOVL    count+8(FP), BX
        JMP     runtime·memeqbody(SB)
 
-TEXT runtime·gomemeq(SB),NOSPLIT,$0-13
+TEXT runtime·gomemeq(SB),NOSPLIT,$0-17
        MOVL    a+0(FP), SI
        MOVL    b+4(FP), DI
        MOVL    size+8(FP), BX
        CALL    runtime·memeqbody(SB)
-       MOVB    AX, ret+12(FP)
+       MOVB    AX, ret+16(FP)
        RET
 
 // eqstring tests whether two strings are equal.