memory: fixed unsigned long issue

Signed-off-by: George K. Thiruvathukal <gkt@cs.luc.edu>