change v0.0.1

This commit is contained in:
Anatoly Prohacky
2023-03-04 16:58:02 +10:00
parent 96c0cdabbf
commit 894bc6617c
4 changed files with 7 additions and 9 deletions

View File

@@ -73,11 +73,8 @@ func (a AclBit) String() string {
// converting string bits to int64
func (a AclBit) Int64() int64 {
i64, err := strconv.ParseInt(a.String(), 2, 64)
if err != nil {
return -1
}
return i64
return int64(a)
}
// converting string bits to int64