Skip to main content
deleted 12 characters in body
Source Link
chux
  • 36.5k
  • 2
  • 43
  • 97

[Just a short review, more later]review]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all numeric types.

[Just a short review, more later]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all numeric types.

[Just a short review]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all numeric types.

added 8 characters in body
Source Link
chux
  • 36.5k
  • 2
  • 43
  • 97

[Just a short review, more later]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all numeric types.

[Just a short review, more later]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all types.

[Just a short review, more later]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all numeric types.

Source Link
chux
  • 36.5k
  • 2
  • 43
  • 97

[Just a short review, more later]

Not a 3-way compare

data->size - *key is never negative as it is a wide unsigned subtraction and so does not meet "Requires a 3-way comparison function".

Idiomatic compare is (a > b) - (a < b), which works for all types.