fix bug

1."Math.min l1, l2 == 0" is equivalent to "Math.min(l1, (l2 == 0))".I
think this is not the author would like to express.
2."[0...l1 + 1]" is equivalent to "[0..l1]".
Merge pull request #69 from BlackTea1988/master

fix bug