v923z / micropython-ulab

a numpy-like fast vector module for micropython, circuitpython, and their derivatives
https://micropython-ulab.readthedocs.io/en/latest
MIT License
408 stars 113 forks source link

Fix sort when dtype is uint16 #563

Closed dpgeorge closed 1 year ago

dpgeorge commented 1 year ago

Prior to this fix the code was using the mp_float_t data type for uint16 and producing incorrect sort results.

v923z commented 1 year ago

Many thanks! Merged.

dpgeorge commented 1 year ago

Thanks for the quick merge!