kunt

golang IRC bot
git clone git://git.2f30.org/kunt
Log | Files | Refs | LICENSE

commit ac44170b1416a9638553f214e89aaff38539cf19
parent 22c963d406978263f6ecdd6aadc9f8419b0fbb3f
Author: sin <sin@2f30.org>
Date:   Wed,  1 May 2013 14:06:06 +0100

change uint64 to int

Diffstat:
Msrc/bdec/bdec.go | 2+-
Msrc/benc/benc.go | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bdec/bdec.go b/src/bdec/bdec.go @@ -27,7 +27,7 @@ func decryptBuf(c *blowfish.Cipher, a []byte) []byte { type hdr struct { Magic string - Len uint64 + Len int Data []byte } diff --git a/src/benc/benc.go b/src/benc/benc.go @@ -39,7 +39,7 @@ func encryptBuf(c *blowfish.Cipher, a []byte) []byte { type hdr struct { Magic string - Len uint64 + Len int Data []byte } @@ -64,7 +64,7 @@ func main() { } eb := encryptBuf(c, b) - h := &hdr{"BENC", uint64(len(b)), eb} + h := &hdr{"BENC", len(b), eb} g := gob.NewEncoder(os.Stdout) err = g.Encode(*h) if err != nil {