aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
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>2024-01-16 18:37:18 +0100
commit7673702396d4107682b62debdaf904235a35a1a0 (patch)
treeb94fe8763a93683518f17d86d65ba0693425b99b /gcc/rust/hir
parente7d105546b7fca4b55959d73c5f60dfb84658f15 (diff)
downloadgcc-7673702396d4107682b62debdaf904235a35a1a0.zip
gcc-7673702396d4107682b62debdaf904235a35a1a0.tar.gz
gcc-7673702396d4107682b62debdaf904235a35a1a0.tar.bz2
gccrs: 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/hir')
0 files changed, 0 insertions, 0 deletions