Menu

#14 64 bit support

open
nobody
None
5
2009-11-22
2009-11-22
Anonymous
No

hi,

i wanted to use this on a 64bit system and had problems with the GetInt4d() function.

i found via google already a solution to have it on all systems working:

function GetInt4d($data, $pos) {
$_or_24 = ord($data[$pos+3]);
if ($_or_24>=128) $_ord_24 = -abs((256-$_or_24) << 24);
else $_ord_24 = ($_or_24&127) << 24;

return ord($data[$pos]) | (ord($data[$pos+1]) << 8) |
(ord($data[$pos+2]) << 16) | $_ord_24;
}

maybe someone can add this code to the repository

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.