aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-05-05 14:40:20 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2023-05-11 09:38:22 +0200
commit12d52ac02131c13dee26f709550f2d5fe9fe2ca1 (patch)
tree8491807ec924b7b33a934fd14c33f7ad60725a34 /gcc/rust/parse
parent39817cc6c962e4cbeb5782415b7194e9906ac18b (diff)
downloadgcc-12d52ac02131c13dee26f709550f2d5fe9fe2ca1.zip
gcc-12d52ac02131c13dee26f709550f2d5fe9fe2ca1.tar.gz
gcc-12d52ac02131c13dee26f709550f2d5fe9fe2ca1.tar.bz2
converter: Fix suffix condition
The suffix condition was wrong, the code was assigning a suffix to unsuffixed literals. The literals length equals the end of digit parsing position means there is no suffix. gcc/rust/ChangeLog: * util/rust-token-converter.cc (dispatch_float_literals): Invert suffix condition. (dispatch_integer_literals): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/parse')
0 files changed, 0 insertions, 0 deletions