On amd64 the fix from http://bugs.gentoo.org/show_bug.cgi?id=103013 is not enough. Attached is corrected patch from mentioned bug plus amd64 changes, the binary compile result is going to be the same for x86.
Created attachment 72614 [details, diff] enhanced patch from http://bugs.gentoo.org/show_bug.cgi?id=103013 This patch fixes int != 4 assumption alongside with already corrected stuff from http://bugs.gentoo.org/show_bug.cgi?id=103013 Applies cleanly to: [ebuild R ] net-print/hpijs-1.7.1
Added, thanks.