pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Fix circular buffer on 32-bit machines.
2020-10-30, Elliott Sales de Andrade
72d67a705fae
Parents
bf0c2b76782a
Children
ff16d3fc907e
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/
1 files changed, 1 insertions(+), 1 deletions(-)
+1
-1
libpurple/circularbuffer.c
--- 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);
}