brady8/thumbs_up — comment on commit 2ad8cef8e2221f429a43ea8d37eee78d2dfba433
File: lib/acts_as_voteable.rb line 28
By brady8:

Good question. You can test for yourself, but I found I needed the cast otherwise the arithmetic worked out weird... it would end up with a signed integer overflow for some reason. To be honest, it was a quick fix and I didn't see any harm in it, so I never got to the root of the issue.