diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-22 23:40:53 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-22 23:40:53 +0100 |
commit | 886603192223eeb71f83997c6958bf120cb1c530 (patch) | |
tree | 5d995d274990893b970849b7075382688cf1fc31 /util-src | |
parent | b7778932eb92efdcbdf9dc9e8608a6221887b624 (diff) | |
download | prosody-886603192223eeb71f83997c6958bf120cb1c530.tar.gz prosody-886603192223eeb71f83997c6958bf120cb1c530.zip |
util.encodings: Make limit lookup table a const (from Lua f2a813ae)
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/encodings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c index a633d7fa..465819d5 100644 --- a/util-src/encodings.c +++ b/util-src/encodings.c @@ -173,7 +173,7 @@ static const luaL_Reg Reg_base64[] = { * Decode one UTF-8 sequence, returning NULL if byte sequence is invalid. */ static const char *utf8_decode(const char *o, int *val) { - static unsigned int limits[] = {0xFF, 0x7F, 0x7FF, 0xFFFF}; + static const unsigned int limits[] = {0xFF, 0x7F, 0x7FF, 0xFFFF}; const unsigned char *s = (const unsigned char *)o; unsigned int c = s[0]; unsigned int res = 0; /* final result */ |