You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
github.com/kataras/iris/v12/sessions.GetInt64Default gives uint value 6 and i got 0 return
To Reproduce
Steps to reproduce the behavior:
github.com/kataras/iris/v12/sessions.GetInt64Default call
github.com/kataras/iris/v12/sessions.GetInt64
when the v value is uint 6 t then the func GetInt64Default return the defaultValue
Expected behavior
github.com/kataras/iris/v12/sessions.GetInt64Default call
github.com/kataras/iris/v12/sessions.GetInt64
when the v value is uint 6 and the func GetInt64Default should return Int64 6 not the defaultValue given
Desktop (please complete the following information):
OS: [windows]
The text was updated successfully, but these errors were encountered:
@lmq1117 this is not a bug it is expected, if you want to get an uint X value you (should) use .GetUint64Default instead of GetInt64Default. See the GetUint64Default method, it only checks for uint8, uint16,uint32 and int.
However, the uint types will be added to GetInt64Default if that's useful for you.
You are welcome @lmq1117, yes I got it, by yesterday this commit fixes the above. It will be available for you to update and use at 23 Nov. as v12.0.2.
Describe the bug
github.com/kataras/iris/v12/sessions.GetInt64Default gives uint value 6 and i got 0 return
To Reproduce
Steps to reproduce the behavior:
github.com/kataras/iris/v12/sessions.GetInt64
when the v value is uint 6 t then the func GetInt64Default return the defaultValue
Expected behavior
github.com/kataras/iris/v12/sessions.GetInt64
when the v value is uint 6 and the func GetInt64Default should return Int64 6 not the defaultValue given
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: