Bugfix: gridseed: use a signed integer so that returning -1 has defined behavior