Fix compare to function result instead of function.
Merge pull request #381 from rubylibre/master

Fix compare to function result instead of function.