change v0.0.1
This commit is contained in:
@@ -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