当void*转换为int时,会报错: Cast from pointer to smaller type ‘int‘ loses information 后来,发现这么修改即可: (int)(size_t)data