From c8db0cbf5a40d6e23229055b41f0e442f43ae8a8 Mon Sep 17 00:00:00 2001
From: Daniel Czerwonk <daniel@dan-nrw.de>
Date: Fri, 1 Jun 2018 09:40:43 +0200
Subject: [PATCH] removed unneccessary cast

---
 protocols/bgp/packet/community.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/protocols/bgp/packet/community.go b/protocols/bgp/packet/community.go
index e00ae204..5fd0f29a 100644
--- a/protocols/bgp/packet/community.go
+++ b/protocols/bgp/packet/community.go
@@ -31,7 +31,7 @@ func ParseCommunityString(s string) (uint32, error) {
 	if err != nil {
 		return 0, err
 	}
-	e2 := uint16(v)
+	e2 := uint32(v)
 
-	return e1<<16 + uint32(e2), nil
+	return e1<<16 + e2, nil
 }
-- 
GitLab