Silence some -Wsign-compare warnings.

You can declare addr inline here.