silence C++ compilation warnings
silence C++ compilation warnings

Before this commit, there are two warnings:
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

cupy/cupy,cupy/cupy,cupy/cupy,cupy/cupy