]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/numfmt/util.cpp
ICU-511.35.tar.gz
[apple/icu.git] / icuSources / samples / numfmt / util.cpp
index 43905d118bbb0252d53cf8ea9968388dfa586188..121e13099a9eb6f85ff6673381e6227a2637019e 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT:
- * Copyright (c) 1999-2003, International Business Machines Corporation and
+ * Copyright (c) 1999-2003,2009, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
@@ -72,7 +72,7 @@ void uprintf(const UnicodeString &str) {
     }
     printf("%s", buf);
     if(buf != stackBuffer) {
-        delete buf;
+        delete[] buf;
     }
 }
 
@@ -89,6 +89,7 @@ UnicodeString formattableToString(const Formattable& f) {
             return UnicodeString(buf, "");
         }
     case Formattable::kLong:
+    case Formattable::kInt64:
         {
             char buf[256];
             sprintf(buf, "%ldL", f.getLong());