fixed an operator precedence issue of the ternary operator

This commit is contained in:
hyung-hwan 2016-11-02 15:12:02 +00:00
parent b77a9f36b4
commit 5e296b7deb

View File

@ -309,8 +309,7 @@ $this->load->view (
if ($q != 0) return $q;
}
return ($cx > $cy)? 1:
($cx < $cy)? -1: 0;
return ($cx > $cy)? 1: (($cx < $cy)? -1: 0);
}
function comp_files ($a, $b)