From 6083d859ba5b7e5c9abfc7f6679dc8d3be2202fb Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Fri, 12 Aug 2016 00:27:46 +0000 Subject: [PATCH] ICU-12570 remove undefined behaviors from cintltst. Mostly signed integer overflow. X-SVN-Rev: 39042 --- icu4c/source/test/cintltst/bocu1tst.c | 2 +- icu4c/source/test/cintltst/cnormtst.c | 12 ++++++------ icu4c/source/test/cintltst/sorttest.c | 2 +- icu4c/source/test/cintltst/utmstest.c | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/icu4c/source/test/cintltst/bocu1tst.c b/icu4c/source/test/cintltst/bocu1tst.c index 780b65b175..5cf33bf186 100644 --- a/icu4c/source/test/cintltst/bocu1tst.c +++ b/icu4c/source/test/cintltst/bocu1tst.c @@ -344,7 +344,7 @@ packDiff(int32_t diff) { } while(--count>0); /* add lead byte */ - result|=(lead+diff)<