Extra "toValue = " on line 98. This was inside a ternary function which already was assigning its value to toValue. This likely was not causing a bug, but could cause compilers to less efficient, and some IDE's validations may not like it.
Merge pull request #12 from rwblackburn/master

Removed unused variable assignment in ternary function.