From 1954ef47e67762f0308544e3a17976e4c3927e32 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 2 Jul 2014 00:06:21 +0200 Subject: Suicide is deferred to update --- ethutil/bytes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ethutil') diff --git a/ethutil/bytes.go b/ethutil/bytes.go index ad60e62fd..d68a69433 100644 --- a/ethutil/bytes.go +++ b/ethutil/bytes.go @@ -129,7 +129,7 @@ func FormatData(data string) []byte { } func RightPadBytes(slice []byte, l int) []byte { - if l <= len(slice) { + if l < len(slice) { return slice } @@ -140,7 +140,7 @@ func RightPadBytes(slice []byte, l int) []byte { } func LeftPadBytes(slice []byte, l int) []byte { - if l <= len(slice) { + if l < len(slice) { return slice } -- cgit v1.2.3