BE fixes 

removed type casts that caused test failure on BE(64bit)
If the signature changes, we can actually remove the `new_lineno` variable completely because it was only need so that we can take the address of it.