nvidia-detect: use size_t in comparisons using sizeof()

ARRAY_SIZE() uses sizeof() which returns size_t. Comparisons with
ARRAY_SIZE() should therefore use the same type as int and size_t differ
on 64-bit platforms.

Signed-off-by: Philip J Perry <phil@elrepo.org>