Incorrect function declaration

View: New views
1 Messages — Rating Filter:   Alert me  

Incorrect function declaration

by pip88nl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Aldor List,

I just wanted to attend you to the following incorrect declaration:

  extern void     hfoldUnit       (Foam);

in of_hfold.h. It should be:

  extern Foam     hfoldUnit       (Foam);

This is dangerous, because callers may not expect a stack push which might
have been done by this function.

--
Pippijn van Steenhoven


_______________________________________________
Aldor-l mailing list
Aldor-l@...
http://aldor.org/mailman/listinfo/aldor-l_aldor.org

signature.asc (196 bytes) Download Attachment
LightInTheBox - Buy quality products at wholesale price