summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Oisín Mac Fhearaí <denpashogai@gmail.com>2019-08-11 06:14:10 +0100
committerGravatar Oisín Mac Fhearaí <denpashogai@gmail.com>2019-08-11 06:14:10 +0100
commit35eaf23643fcd2eb4376f07a490c959737179eef (patch)
treea968c5ec97847c6b993eaedd18f92452171d5084
parent71e1eb7be7ebd566a19be3cab381f813d9c2e4fc (diff)
Try to avoid a pointer conversion error
-rw-r--r--src/c/urweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 509ba10d..a76f0004 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -20,8 +20,8 @@
#include <pthread.h>
-#include <unicode/uchar.h>
#include <unicode/ustring.h>
+#include <unicode/uchar.h>
#include "types.h"
@@ -2350,7 +2350,7 @@ uw_unit uw_Basis_htmlifySpecialChar_w(uw_context ctx, uw_Basis_char ch) {
if(uw_Basis_isprint(ctx, ch)) {
- UChar32 ins[1] = { ch };
+ const UChar ins[1] = { ch };
char buf[5];
int32_t len_written = 0;
UErrorCode err = U_ZERO_ERROR;