Silence some -Wsign-compare warnings.

by command_id, I mean the name of the variables where this macro is used.