Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/hasher.cr
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ struct Crystal::Hasher
end

def float(value)
@result *= @result * 31 + value.to_f64.unsafe_as(UInt64)
@result = @result * 31 + value.to_f64.unsafe_as(UInt64)
self
end

2 comments on commit 6e576d8

@RX14
Copy link
Member

@RX14 RX14 commented on 6e576d8 Sep 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't push to master directly any more.

@asterite
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I know, but this was just a silly typo. But yeah, next time I'll send a PR.

Please sign in to comment.