[#1067] adm: Fix panic on negative value
All checks were successful
DCO action / DCO (pull_request) Successful in 18m3s
Vulncheck / Vulncheck (pull_request) Successful in 19m40s
Build / Build Components (1.21) (pull_request) Successful in 23m19s
Build / Build Components (1.22) (pull_request) Successful in 23m19s
Tests and linters / gopls check (pull_request) Successful in 27m14s
Tests and linters / Staticcheck (pull_request) Successful in 28m2s
Tests and linters / Lint (pull_request) Successful in 28m40s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m27s
Tests and linters / Tests (1.22) (pull_request) Successful in 4m32s
Tests and linters / Tests with -race (pull_request) Successful in 4m50s
All checks were successful
DCO action / DCO (pull_request) Successful in 18m3s
Vulncheck / Vulncheck (pull_request) Successful in 19m40s
Build / Build Components (1.21) (pull_request) Successful in 23m19s
Build / Build Components (1.22) (pull_request) Successful in 23m19s
Tests and linters / gopls check (pull_request) Successful in 27m14s
Tests and linters / Staticcheck (pull_request) Successful in 28m2s
Tests and linters / Lint (pull_request) Successful in 28m40s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m27s
Tests and linters / Tests (1.22) (pull_request) Successful in 4m32s
Tests and linters / Tests with -race (pull_request) Successful in 4m50s
Signed-off-by: Anoke <rustamgta1011@gmail.com>
This commit is contained in:
parent
ec2873caa7
commit
0932c9f7bf
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ func SetPolicyCmd(cmd *cobra.Command, args []string) error {
|
||||||
|
|
||||||
value, err := strconv.ParseUint(v, 10, 32)
|
value, err := strconv.ParseUint(v, 10, 32)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("can't parse parameter value '%s': %w", args[1], err)
|
return fmt.Errorf("can't parse parameter value '%s': %w", args[i], err)
|
||||||
}
|
}
|
||||||
|
|
||||||
emit.AppCall(bw.BinWriter, policy.Hash, "set"+k, callflag.All, int64(value))
|
emit.AppCall(bw.BinWriter, policy.Hash, "set"+k, callflag.All, int64(value))
|
||||||
|
|
Loading…
Reference in a new issue