BE fixes 

removed type casts that caused test failure on BE(64bit)
If the signature of this function changes, the ```(size_t)lineno``` cast is no longer required.