diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 16:06:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 20:44:58 +0000 |
commit | 7439af47d1dcc0925d57cc878c2714c8fb2cd67e (patch) | |
tree | dc68b9f481bccd598b0c15dbee1f45b74900ff3b /rsc | |
parent | cb2d414fe910702002d7dc800db68e2bae935b23 (diff) |
coverity#982297 EBCDIC-related cleanup
Change-Id: I8da7911c342ffe114d7b25b996602aabed7aa1ed
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rscpp/cpp4.c | 3 | ||||
-rw-r--r-- | rsc/source/rscpp/cpp5.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/rsc/source/rscpp/cpp4.c b/rsc/source/rscpp/cpp4.c index 6240c1b99514..034c0123816e 100644 --- a/rsc/source/rscpp/cpp4.c +++ b/rsc/source/rscpp/cpp4.c @@ -49,8 +49,7 @@ void InitCpp4() * the formal parameter name is encountered in the replacement * string, it is replaced by a character in the range 128 to * 128+NPARAM (this allows up to 32 parameters within the - * Dec Multinational range). If cpp is ported to an EBCDIC - * machine, you will have to make other arrangements. + * Dec Multinational range). * * There is some special case code to distinguish * #define foo bar diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c index d7bd98c5ceaa..a6b9e142639c 100644 --- a/rsc/source/rscpp/cpp5.c +++ b/rsc/source/rscpp/cpp5.c @@ -741,7 +741,7 @@ FILE_LOCAL int evalchar(int skip) (--count >= 0)) { value *= 16; - value += (c >= '0') ? (c - '0') : ((c & 0xF) + 9); + value += (c - '0'); } unget(); break; |