mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1014 from ailin-nemui/fix-be64
fix test on Big Endian 64bit, due to pointer size mismatch
(cherry picked from commit 01ce66c684
)
This commit is contained in:
parent
bd2ff8c99c
commit
bb600a6575
@ -54,7 +54,12 @@ static void test_paste_join_multiline(const paste_join_multiline_test_case *test
|
||||
g_test_message("INPUT: \"%s\"", (t1 = g_strescape(test->input, NULL)));
|
||||
g_free(t1);
|
||||
|
||||
buffer->data = (char *) g_utf8_to_ucs4_fast(test->input, -1, (glong *) &buffer->len);
|
||||
{
|
||||
glong buf_len;
|
||||
buffer->data = (char *) g_utf8_to_ucs4_fast(test->input, -1, &buf_len);
|
||||
buffer->len = buf_len;
|
||||
}
|
||||
|
||||
paste_buffer_join_lines(buffer);
|
||||
resultstr = g_ucs4_to_utf8((unichar *) buffer->data, buffer->len, NULL, NULL, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user