mod: remove pointer-to-int-cast warning