ZENGINE: Fix signed/unsigned mismatch