fix for 0xc4 array length

on android I had problems with negative-size arrays, this fixes them