strinfo is always strictly little endian, so ensure that we byteswap to
native when comparing and returning.
guint i;
for (i = 0; i < length; i++)
guint i;
for (i = 0; i < length; i++)
- if (strinfo[i] == value)
+ if (strinfo[i] == GUINT32_TO_LE (value))
{
const guchar *charinfo = (const guchar *) &strinfo[i];
{
const guchar *charinfo = (const guchar *) &strinfo[i];
if (index < 0)
return FALSE;
if (index < 0)
return FALSE;
- *result = strinfo[index];
+ *result = GUINT32_FROM_LE (strinfo[index]);