Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a subtle bug where sort would not work correctly on systems where…

… sizeof(INTVAL) != sizeof(FLOATVAL)
  • Loading branch information...
commit ea4026198c8de28a4093c3a161d7c2ecd66f1b33 1 parent 26cdda8
@leto leto authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/pmc/fixedfloatarray.pmc
View
2  src/pmc/fixedfloatarray.pmc
@@ -64,7 +64,7 @@ Sort the array and return self.
FLOATVAL *float_array;
GET_ATTR_float_array(INTERP, SELF, float_array);
if (PMC_IS_NULL(cmp_func))
- qsort(float_array, n, sizeof (INTVAL),
+ qsort(float_array, n, sizeof (FLOATVAL),
(int (*)(const void *, const void*))auxcmpfunc);
else
Parrot_util_quicksort(INTERP, (void**)float_array, n, cmp_func, "NN->N");
Please sign in to comment.
Something went wrong with that request. Please try again.