From 444c60e6e95f89c24c28b427d1a651b53fa101dd Mon Sep 17 00:00:00 2001 From: Tony Kelman Date: Sat, 4 Apr 2015 21:37:57 -0700 Subject: [PATCH] casts for msvc --- src/flisp/julia_extensions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/flisp/julia_extensions.c b/src/flisp/julia_extensions.c index 2adc0e89d9999..86f58762662a0 100644 --- a/src/flisp/julia_extensions.c +++ b/src/flisp/julia_extensions.c @@ -163,7 +163,7 @@ static char *normalize(char *s) const int options = UTF8PROC_NULLTERM|UTF8PROC_STABLE|UTF8PROC_COMPOSE; ssize_t result; size_t newlen; - result = utf8proc_decompose((uint8_t*) s, 0, NULL, 0, options); + result = utf8proc_decompose((uint8_t*) s, 0, NULL, 0, (utf8proc_option_t)options); if (result < 0) goto error; newlen = result * sizeof(int32_t) + 1; if (newlen > buflen) { @@ -171,9 +171,9 @@ static char *normalize(char *s) buf = realloc(buf, buflen); if (!buf) lerror(OutOfMemoryError, "error allocating UTF8 buffer"); } - result = utf8proc_decompose((uint8_t*)s,0, (int32_t*)buf,result, options); + result = utf8proc_decompose((uint8_t*)s,0, (int32_t*)buf,result, (utf8proc_option_t)options); if (result < 0) goto error; - result = utf8proc_reencode((int32_t*)buf,result, options); + result = utf8proc_reencode((int32_t*)buf,result, (utf8proc_option_t)options); if (result < 0) goto error; return (char*) buf; error: