Fix parsing of binary floating point numbermob
authorLee Duhem <lee.duhem@gmail.com>
Mon, 15 Dec 2014 08:32:08 +0000 (16:32 +0800)
committerLee Duhem <lee.duhem@gmail.com>
Mon, 15 Dec 2014 08:32:08 +0000 (16:32 +0800)
commit5a76c5d2f39ad087b5153d458503caabb871c513
tree5958d4e0b7b521603c13ee6e571ee7b93dce8166
parent20a5845a4789f7c4fee8126584dcf25fc75c391f
Fix parsing of binary floating point number

* tccpp.c (parse_number): `shift' should be 1 while parsing binary
floating point number.
* tests/tests2/70_floating_point_literals.c: New test cases for
floating point number parsing.
tccpp.c
tests/tests2/70_floating_point_literals.c [new file with mode: 0644]
tests/tests2/70_floating_point_literals.expect [new file with mode: 0644]
tests/tests2/Makefile