Fixed some unsafe down cast pointer operations for sig_pri.