mirror of https://github.com/spf13/cast.git
fix ToInt64E to cast value to int64 correctly on 32-bit system
ToInt64E currently try cast the value to int type, which default to int32 type on 32-bit system and will result in potential overflow error. Fix this by update the bitSize to 64 to cast the value to int64 on any system.
This commit is contained in:
parent
8d17101741
commit
aeeff960fc
Loading…
Reference in New Issue