Unsigned integers of 32 bit length are not always normalised as signed ones. Especially then not when they are set over the LDAP server. In a concrete example that means that values over the 2 billions threshold don't become negative.
The bug happens solely on x86_64 and comparable 64bit platforms.