From acbe498b113aba3001f11b63e3ef125c836fb3e5 Mon Sep 17 00:00:00 2001 From: danielqsj Date: Tue, 7 May 2019 10:52:32 +0800 Subject: [PATCH] fix other add statement --- staging/src/k8s.io/apimachinery/pkg/api/resource/math.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/apimachinery/pkg/api/resource/math.go b/staging/src/k8s.io/apimachinery/pkg/api/resource/math.go index e0344f2ca4..7f63175d3e 100644 --- a/staging/src/k8s.io/apimachinery/pkg/api/resource/math.go +++ b/staging/src/k8s.io/apimachinery/pkg/api/resource/math.go @@ -196,7 +196,7 @@ func negativeScaleInt64(base int64, scale Scale) (result int64, exact bool) { if base > 0 { value++ } else { - value += -1 + value-- } } return value, !fraction