]> granicus.if.org Git - icu/commitdiff
ICU-10175 swat compiler warnings in layout.
authorAndy Heninger <andy.heninger@gmail.com>
Sat, 21 May 2016 01:13:04 +0000 (01:13 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Sat, 21 May 2016 01:13:04 +0000 (01:13 +0000)
X-SVN-Rev: 38759

icu4c/source/layout/IndicRearrangementProcessor.cpp
icu4c/source/layout/IndicRearrangementProcessor2.cpp

index dd1ff5266bdd4f6bef8b3780bb87ff943d937512..070367008a383b940b259fd4bc9e67711763f43d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- * (C) Copyright IBM Corp. 1998-2015 - All Rights Reserved
+ * (C) Copyright IBM Corp. 1998-2016 - All Rights Reserved
  *
  */
 
@@ -94,7 +94,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         ia = glyphStorage.getCharIndex(firstGlyph, success);
         x = firstGlyph + 1;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 1, ix, success);
@@ -115,7 +115,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 1;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -150,7 +150,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
         x = firstGlyph + 2;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -176,7 +176,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
         x = firstGlyph + 2;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -202,7 +202,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 2, ix, success);
@@ -228,7 +228,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 2, ix, success);
@@ -256,7 +256,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x > firstGlyph) {
+        while (x > (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -286,7 +286,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x > firstGlyph) {
+        while (x > (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -316,7 +316,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = firstGlyph + 2;
 
-        while (x < lastGlyph) {
+        while (x < (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -346,7 +346,7 @@ void IndicRearrangementProcessor::doRearrangementAction(LEGlyphStorage &glyphSto
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = firstGlyph + 2;
 
-        while (x < lastGlyph) {
+        while (x < (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
index b54e20c8ef371ac2fd6734c13b2cca2ca6c039ce..75b3b00a3c5dd7f8b5105a96003abafb74d274fc 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *
- * (C) Copyright IBM Corp.  and others 1998-2015 - All Rights Reserved
+ * (C) Copyright IBM Corp.  and others 1998-2016 - All Rights Reserved
  *
  */
 
@@ -91,7 +91,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         ia = glyphStorage.getCharIndex(firstGlyph, success);
         x = firstGlyph + 1;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 1, ix, success);
@@ -112,7 +112,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 1;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -147,7 +147,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
         x = firstGlyph + 2;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -173,7 +173,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         ib = glyphStorage.getCharIndex(firstGlyph + 1, success);
         x = firstGlyph + 2;
 
-        while (x <= lastGlyph) {
+        while (x <= (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -199,7 +199,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 2, ix, success);
@@ -225,7 +225,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x >= firstGlyph) {
+        while (x >= (int32_t)firstGlyph) {
             glyphStorage[x + 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 2, ix, success);
@@ -253,7 +253,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x > firstGlyph) {
+        while (x > (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -283,7 +283,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = lastGlyph - 2;
 
-        while (x > firstGlyph) {
+        while (x > (int32_t)firstGlyph) {
             glyphStorage[x + 1] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x + 1, ix, success);
@@ -313,7 +313,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = firstGlyph + 2;
 
-        while (x < lastGlyph) {
+        while (x < (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);
@@ -343,7 +343,7 @@ void IndicRearrangementProcessor2::doRearrangementAction(LEGlyphStorage &glyphSt
         id = glyphStorage.getCharIndex(lastGlyph, success);
         x = firstGlyph + 2;
 
-        while (x < lastGlyph) {
+        while (x < (int32_t)lastGlyph) {
             glyphStorage[x - 2] = glyphStorage[x];
             ix = glyphStorage.getCharIndex(x, success);
             glyphStorage.setCharIndex(x - 2, ix, success);