From: Steinar H. Gunderson Date: Mon, 13 Jun 2016 13:37:46 +0000 (+0200) Subject: Fix an issue where the cp score would not be an int, and thus not sort correctly. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=4166f694604b0ee8e7fb47156c6623d036b35457;ds=sidebyside Fix an issue where the cp score would not be an int, and thus not sort correctly. --- diff --git a/remoteglot.pl b/remoteglot.pl index 55464e6..52eae90 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -1090,7 +1090,7 @@ sub score_digest { if ($score == 0 && $info->{'tablebase'}) { return ['d', undef]; } else { - return ['cp', $score]; + return ['cp', int($score)]; } } }