summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorVincent Bernat <vincent@bernat.im>2016-10-08 11:19:29 +0200
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-10-08 06:11:08 -0700
commitddb9303bb5b02a8ad4401611d3866ffd09b57add (patch)
tree085f95ad70fa2fc075197a67b9ab0f6e5cad3cb1 /api
parentcab09990b87f98ed61d3bb596695c6f35c47c624 (diff)
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.
Diffstat (limited to 'api')
-rw-r--r--api/grpc_server.go2
1 files changed, 1 insertions, 1 deletions
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) {