Re: Variant tests failing on big endian machines
- From: Rafael dos Santos <rdossant redhat com>
- To: Torsten Schoenfeld <kaffeetisch gmx de>
- Cc: gtk-perl-list gnome org
- Subject: Re: Variant tests failing on big endian machines
- Date: Mon, 29 Jun 2015 05:10:04 -0400 (EDT)
Hi,
----- Original Message -----
From: "Torsten Schoenfeld" <kaffeetisch gmx de>
To: gtk-perl-list gnome org
Sent: Sunday, 28 June, 2015 11:09:42 PM
Subject: Re: Variant tests failing on big endian machines
On 26.06.2015 17:54, Rafael dos Santos wrote:
const char * g_variant_classify (GVariant *value);
PREINIT:
GVariantClass vclass;
CODE:
vclass = g_variant_classify (value);
RETVAL = (const char *) &((char) vclass);
GVariant.xs: In function ‘XS_Glib__Variant_classify’:
GVariant.xs:285:26: error: lvalue required as unary ‘&’ operand
RETVAL = (const char *) &((char) vclass);
^
Right. How about this patch then? Works on my (little-endian) machine.
(The "const char *" typemap copies the string, so it's OK to return
references to local variables.)
This patch works on a big-endian machine. All tests passed successfully.
Att
--
Rafael Fonseca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]