From: Adam Sutton Date: Fri, 30 Aug 2013 22:22:57 +0000 (+0100) Subject: idnode: reduce short ID to 31 bits to its a +ve 32bit signed int X-Git-Tag: v4.1~2578 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f942f18aa3ce9cd24503dd7ddb35f0903c2159db;p=thirdparty%2Ftvheadend.git 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! --- diff --git a/src/idnode.c b/src/idnode.c index ff64bd690..b9bc9cc60 100644 --- a/src/idnode.c +++ b/src/idnode.c @@ -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 } /**