idnode: reduce short ID to 31 bits to its a +ve 32bit signed int

Unfortunately this is what XBMC requires. Why signed I have no idea!
This commit is contained in:
Adam Sutton 2013-08-30 23:22:57 +01:00
parent 4142ad4366
commit f942f18aa3

View file

@ -211,7 +211,7 @@ idnode_get_short_uuid (const idnode_t *in)
{
uint32_t u32;
memcpy(&u32, in->in_uuid, sizeof(u32));
return u32;
return u32 & 0x7FFFFFFF; // compat needs to be +ve signed
}
/**