From ddb9303bb5b02a8ad4401611d3866ffd09b57add Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 8 Oct 2016 11:19:29 +0200 Subject: table: ensure compatibility with archs where int == int32 MED actions are expected to be int64 and AS are expected to be uint32. Use ParseInt/ParseUint instead of Atoi for those until the tests pass on ARM. --- api/grpc_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/grpc_server.go') diff --git a/api/grpc_server.go b/api/grpc_server.go index 2d194393..61e56739 100644 --- a/api/grpc_server.go +++ b/api/grpc_server.go @@ -1296,7 +1296,7 @@ func NewMedActionFromApiStruct(a *MedAction) (*table.MedAction, error) { if a == nil { return nil, nil } - return table.NewMedActionFromApiStruct(table.MedActionType(a.Type), int(a.Value)), nil + return table.NewMedActionFromApiStruct(table.MedActionType(a.Type), a.Value), nil } func NewLocalPrefActionFromApiStruct(a *LocalPrefAction) (*table.LocalPrefAction, error) { -- cgit v1.2.3