Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/bogo-im.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ int Utf32ToUtf8Char(const uint32_t c, char buf[UTF8_MAX_LENGTH + 1])
str[0] = c;
str[1] = 0;

iconv_t *conv;
iconv_t conv;

union {
short s;
Expand Down Expand Up @@ -645,7 +645,7 @@ int Utf32ToUtf8Char(const uint32_t c, char buf[UTF8_MAX_LENGTH + 1])

uint32_t Utf8ToUtf32Char(char *src)
{
iconv_t *conv;
iconv_t conv;

union {
short s;
Expand All @@ -662,9 +662,9 @@ uint32_t Utf8ToUtf32Char(char *src)

size_t inLength = UTF8_MAX_LENGTH + 1;
size_t outLength = sizeof(uint32_t);
IconvStr buff = (IconvStr) output;
char* buff = (char*) output;

iconv(conv, &src, &inLength, &buff, &outLength);
iconv(conv, (IconvStr*)&src, &inLength, &buff, &outLength);

iconv_close(conv);
return output[0];
Expand Down