fix build error: sizeof()