We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a757b commit 3e469feCopy full SHA for 3e469fe
1 file changed
encoding/text/text.go
@@ -28,12 +28,12 @@ func decodeText(ctx *fasthttp.RequestCtx, v interface{}) error {
28
*t = b
29
30
case *int:
31
- d, err := strconv.ParseInt(b2s(b), 10, 64)
+ d, err := strconv.Atoi(b2s(b))
32
if err != nil {
33
return err
34
}
35
36
- *t = int(d)
+ *t = d
37
38
case *int8:
39
d, err := strconv.ParseInt(b2s(b), 10, 8)
@@ -68,7 +68,7 @@ func decodeText(ctx *fasthttp.RequestCtx, v interface{}) error {
68
*t = d
69
70
case *uint:
71
- d, err := strconv.ParseUint(b2s(b), 10, 64)
+ d, err := strconv.ParseUint(b2s(b), 10, 0)
72
73
74
0 commit comments