From 4059a965ff5809999e20a985502e0ce8f530de11 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 22 Aug 2017 14:21:16 +0200 Subject: [PATCH] fix asm compiler warning --- transport/internet/kcp/xor_amd64.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/kcp/xor_amd64.s b/transport/internet/kcp/xor_amd64.s index fdbad2d90..d5b0f483a 100644 --- a/transport/internet/kcp/xor_amd64.s +++ b/transport/internet/kcp/xor_amd64.s @@ -3,7 +3,7 @@ // func xorfwd(x []byte) TEXT ·xorfwd(SB),NOSPLIT,$0 MOVQ x+0(FP), SI // x[i] - MOVL x+8(FP), CX // x.len + MOVL x_len+8(FP), CX // x.len MOVQ x+0(FP), DI ADDQ $4, DI // x[i+4] SUBQ $4, CX @@ -24,7 +24,7 @@ xorfwddone: // func xorbkd(x []byte) TEXT ·xorbkd(SB),NOSPLIT,$0 MOVQ x+0(FP), SI - MOVL x+8(FP), CX // x.len + MOVL x_len+8(FP), CX // x.len MOVQ x+0(FP), DI ADDQ CX, SI // x[-8] SUBQ $8, SI