Fri, 30 Oct 2020 01:41:21 -0500
Fix circular buffer on 32-bit machines.
Here, sizeof(gsize) < sizeof(guint64), and the varargs to `g_object_new` become
out of sync.
Testing Done:
Compile and run tests on cross armv7hl.
Reviewed at https://reviews.imfreedom.org/r/182/
| libpurple/circularbuffer.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/circularbuffer.c Thu Oct 29 23:28:12 2020 -0500 +++ b/libpurple/circularbuffer.c Fri Oct 30 01:41:21 2020 -0500 @@ -340,7 +340,7 @@ PurpleCircularBuffer * purple_circular_buffer_new(gsize growsize) { return g_object_new(PURPLE_TYPE_CIRCULAR_BUFFER, - "grow-size", growsize ? growsize : DEFAULT_BUF_SIZE, + "grow-size", (guint64)(growsize ? growsize : DEFAULT_BUF_SIZE), NULL); }