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
// Set a user-defined comparator for zlistx_find and zlistx_sort; the method
// must return -1, 0, or 1 depending on whether item1 is less than, equal to,
// or greater than, item2.
We actually don't do this in a nice chunk of flux, we return < 0, 0, or > 0. Examples
I suppose this is just a anal retentive thing, we're technically not doing what the documentation says. So they could presumably change things in the future (I know super low odds). Skimming zlistx.c, it seems that == 1 or == -1 doesn't matter as everything is > or <=.
Perhaps the more correct thing is to try and update zeromq documentation upstream.
Per comment in #6370
The zlistx comments say
We actually don't do this in a nice chunk of flux, we return < 0, 0, or > 0. Examples
My mini audit founds cases in
rlist
,taskmap
, andjob-manager
.This doesn't seem to affect zlistx at the moment, but should probably clean this up to adhere to requested API.
The text was updated successfully, but these errors were encountered: