You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/04/12 21:24:11 UTC

[apisix-dashboard] branch master updated: fix: incorrect conversion between integer types (#1753)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 1fa467a  fix: incorrect conversion between integer types (#1753)
1fa467a is described below

commit 1fa467a3ffc627e37cc7057b6c1887eb4eba2c31
Author: nic-chen <33...@users.noreply.github.com>
AuthorDate: Tue Apr 13 05:24:04 2021 +0800

    fix: incorrect conversion between integer types (#1753)
---
 api/internal/utils/utils.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/internal/utils/utils.go b/api/internal/utils/utils.go
index c20c6be..16cdc50 100644
--- a/api/internal/utils/utils.go
+++ b/api/internal/utils/utils.go
@@ -39,7 +39,7 @@ func init() {
 	saltStr, ok := os.LookupEnv("FLAKE_SALT")
 	var salt uint16
 	if ok {
-		i, err := strconv.Atoi(saltStr)
+		i, err := strconv.ParseUint(saltStr, 10, 16)
 		if err != nil {
 			panic(err)
 		}