Skip to content

Commit

Permalink
Crystal::Hasher: change incorrect "*=" to "="
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Sep 11, 2017
1 parent f9237fd commit 6e576d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crystal/hasher.cr
Expand Up @@ -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

Expand Down

2 comments on commit 6e576d8

@RX14
Copy link
Contributor

@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.