Update memory.h

Fix 64 build (at least for me)