Then the documentation needs to be changed.
It really says that:
1) Sort_Swap_Data() documentation never mentions it is to
be used with floats only.
2) Instead, Sort_Array() states its purpose is to sort
an array of floats. Yes, I admit it also says "though you
can redefine the Sort_Compare() and Sort_Swap_Data() macros
to handle multidimensional arrays and other data types"
so the clever minds concluded that Sort_Swap_Data() must
be float-only.
Please correct 1.
--
Adrien Beau - adr### [at] freefr - http://adrien.beau.free.fr
Mes propos n'engagent que moi et en aucun cas mes employeurs
Post a reply to this message
|