Skip to content

Commit

Permalink
Merge pull request #1351 from piyushhhxyz/fix/build_error
Browse files Browse the repository at this point in the history
Bug - Fixed build error in bytearray.go
  • Loading branch information
psrvere authored Dec 2, 2024
2 parents 41867aa + 16cbfcb commit 65a807c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/eval/bytearray.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func ByteSliceToObj(store *dstore.Store, oldObj *object.Obj, b []byte, objType u
func ByteSliceToIntObj(store *dstore.Store, oldObj *object.Obj, b []byte) (*object.Obj, error) {
intVal, err := strconv.ParseInt(string(b), 10, 64)
if err != nil {
return store.NewObj(string(b), -1, object.ObjTypeString, object.ObjEncodingEmbStr), nil
return store.NewObj(string(b), -1, object.ObjTypeString), nil
}
return store.NewObj(intVal, -1, object.ObjTypeInt), nil
}
Expand Down

0 comments on commit 65a807c

Please sign in to comment.