hal: fix minor bug in allocating hal memory for HAL_S32 and HAL_U32 signals

Signed-off-by: Michael Geszkiewicz <micges@wp.pl>