include memory.h, fixed a comparison bug where comparing with signed char with non signed constant