maths: use qualified min/max functions

This commit is contained in:
Danny Robson 2015-03-07 03:21:06 +11:00
parent 994121f2bf
commit 2cd7ce0aca

View File

@ -59,8 +59,8 @@ main (int, char **) {
test_comparisons ();
CHECK_EQ (min (-2, 0, 2), -2);
CHECK_EQ (max (-2, 0, 2), 2);
CHECK_EQ (util::min (-2, 0, 2), -2);
CHECK_EQ (util::max (-2, 0, 2), 2);
CHECK_EQ (pow2 (2), 4);
CHECK_EQ (pow2 (4), 16);