You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
copyObject() is declared to return void *, which allows easily assigningthe result independent of the input, but it loses all type checking.If the compiler supports typeof or something similar, cast the result tothe input type. This creates a greater amount of type safety. In somecases, where the result is assigned to a generic type such as Node * orExpr *, new casts are now necessary, but in general casts are nowunnecessary in the normal case and indicate that something unusual ishappening.Reviewed-by: Mark Dilger <hornschnorter@gmail.com>