Use integer arithmetic for indexing
Make compilation a little smoother