]> granicus.if.org Git - icu/commitdiff
ICU-20043 Compile warning fix with improved portability. (#78)
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 24 Aug 2018 17:52:15 +0000 (10:52 -0700)
committerShane Carr <shane@unicode.org>
Thu, 27 Sep 2018 21:27:38 +0000 (14:27 -0700)
icu4c/source/common/rbbi.cpp

index f7e82cb15d8f7db7d28953df29a971700424cc60..cb3766506f4082e655648ce321fcc7006f8144b9 100644 (file)
@@ -18,6 +18,8 @@
 
 #if !UCONFIG_NO_BREAK_ITERATION
 
+#include <cinttypes>
+
 #include "unicode/rbbi.h"
 #include "unicode/schriter.h"
 #include "unicode/uchriter.h"
@@ -848,7 +850,7 @@ int32_t RuleBasedBreakIterator::handleNext() {
 
        #ifdef RBBI_DEBUG
             if (gTrace) {
-                RBBIDebugPrintf("             %4lld   ", utext_getNativeIndex(&fText));
+                RBBIDebugPrintf("             %4" PRId64 "   ", utext_getNativeIndex(&fText));
                 if (0x20<=c && c<0x7f) {
                     RBBIDebugPrintf("\"%c\"  ", c);
                 } else {