diff --git a/icu4c/source/common/punycode.c b/icu4c/source/common/punycode.c index 29264177789..6fa72b0bed9 100644 --- a/icu4c/source/common/punycode.c +++ b/icu4c/source/common/punycode.c @@ -91,7 +91,7 @@ digitToBasic(int32_t digit, UBool uppercase) { * point (for use in representing integers) in the range 0 to * BASE-1, or -1 if b is does not represent a value. */ -static int8_t +static const int8_t basicToDigit[256]={ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, diff --git a/icu4c/source/common/strprep.cpp b/icu4c/source/common/strprep.cpp index a69d5968f2f..fc106c038a9 100644 --- a/icu4c/source/common/strprep.cpp +++ b/icu4c/source/common/strprep.cpp @@ -32,8 +32,8 @@ static UTrie idnTrie={ 0,0,0,0,0,0,0 }; static UDataMemory* idnData=NULL; static UErrorCode dataErrorCode =U_ZERO_ERROR; /* file definitions */ -static const char* DATA_NAME = "uidna"; -static const char* DATA_TYPE = "icu"; +static const char DATA_NAME[] = "uidna"; +static const char DATA_TYPE[] = "icu"; U_CFUNC UBool ustrprep_cleanup() {