Error in trinary operator due to weak typing. Fixed.
Merge branch 'master' of https://github.com/sunian/smash