about summary refs log tree commit diff
path: root/src/rt/sync/timer.cpp
diff options
context:
space:
mode:
authorblake2-ppc <blake2-ppc>2013-08-08 22:07:22 +0200
committerblake2-ppc <blake2-ppc>2013-08-08 22:07:22 +0200
commit5dde29c947ec1e6b0a52c7f3ccb0771d2a7736f4 (patch)
treea909e87fc09de83c9400c38116a9a7e47c7c7d71 /src/rt/sync/timer.cpp
parent86da55e85b1f1dd520111b52d1f76c61ea43b382 (diff)
downloadrust-5dde29c947ec1e6b0a52c7f3ccb0771d2a7736f4.tar.gz
rust-5dde29c947ec1e6b0a52c7f3ccb0771d2a7736f4.zip
std: Fix tuple lexicographical order
Use the definition, where R is <, <=, >=, or >

    [x, ..xs] R [y, ..ys]  =  if x != y { x R y } else { xs R ys }

Previously, tuples would only implement < and derive the other
comparisons from it; this is incorrect. Included are several testcases
involving NaN comparisons that are now correct.

Previously, tuples would consider an element equal if both a < b and
b < a were false, this was also incorrect.
Diffstat (limited to 'src/rt/sync/timer.cpp')
0 files changed, 0 insertions, 0 deletions