From e15c83fc33ab00707c8ac75261fe4f5bd51943b9 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 06 三月 2020 14:00:13 +0800
Subject: [PATCH] add carNo

---
 sdk.pb.go |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/sdk.pb.go b/sdk.pb.go
index e74b1df..ad5bdbd 100644
--- a/sdk.pb.go
+++ b/sdk.pb.go
@@ -9,6 +9,7 @@
 	proto "github.com/gogo/protobuf/proto"
 	io "io"
 	math "math"
+	math_bits "math/bits"
 )
 
 // Reference imports to suppress errors if they are not otherwise used.
@@ -3288,14 +3289,7 @@
 }
 
 func sovSdk(x uint64) (n int) {
-	for {
-		n++
-		x >>= 7
-		if x == 0 {
-			break
-		}
-	}
-	return n
+	return (math_bits.Len64(x|1) + 6) / 7
 }
 func sozSdk(x uint64) (n int) {
 	return sovSdk(uint64((x << 1) ^ uint64((int64(x) >> 63))))

--
Gitblit v1.8.0