Skip to content

Commit 444c60e

Browse files
committed
casts for msvc
1 parent b9e165b commit 444c60e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/flisp/julia_extensions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,17 @@ static char *normalize(char *s)
163163
const int options = UTF8PROC_NULLTERM|UTF8PROC_STABLE|UTF8PROC_COMPOSE;
164164
ssize_t result;
165165
size_t newlen;
166-
result = utf8proc_decompose((uint8_t*) s, 0, NULL, 0, options);
166+
result = utf8proc_decompose((uint8_t*) s, 0, NULL, 0, (utf8proc_option_t)options);
167167
if (result < 0) goto error;
168168
newlen = result * sizeof(int32_t) + 1;
169169
if (newlen > buflen) {
170170
buflen = newlen * 2;
171171
buf = realloc(buf, buflen);
172172
if (!buf) lerror(OutOfMemoryError, "error allocating UTF8 buffer");
173173
}
174-
result = utf8proc_decompose((uint8_t*)s,0, (int32_t*)buf,result, options);
174+
result = utf8proc_decompose((uint8_t*)s,0, (int32_t*)buf,result, (utf8proc_option_t)options);
175175
if (result < 0) goto error;
176-
result = utf8proc_reencode((int32_t*)buf,result, options);
176+
result = utf8proc_reencode((int32_t*)buf,result, (utf8proc_option_t)options);
177177
if (result < 0) goto error;
178178
return (char*) buf;
179179
error:

0 commit comments

Comments
 (0)