The advice parameter of mem_advise is supposed to be an int. The change in #1239 needs to be reverted.