change v0.0.1
This commit is contained in:
1 parent
96c0cdabbf
commit
894bc6617c
4 files changed
+7
-9
No files matched your search
+2
-5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user