Update warpheap.h

Fixed the bug introduced from last version.