Update xadaptheap.h

Change xadaptheap.h to fix the bug fix.