fixed pointer type error in shadow.c