core/msg: fix uint/int warning

undoes an optimization introduced by #1285