test-message: fix compiler warning

Change offset variable type to avoid a warning when compiling on 32bit system

Signed-off-by: Michele Curti <michele.curti@gmail.com>