fix for 74x gcc491 IB

Should probably use size_t everywhere.