$NetBSD: patch-af,v 1.1 2006/02/04 22:12:23 markd Exp $ --- addons/opvp/gdevopvp.c.orig 2005-09-23 05:06:31.000000000 +1200 +++ addons/opvp/gdevopvp.c @@ -752,7 +752,7 @@ opvp_get_papertable_index( paper = i; match = true; break; - } else if ((f = fabsf(height - paper_h)) < TOLERANCE) { + } else if ((f = fabs(height - paper_h)) < TOLERANCE) { if (f < h_delta) { h_delta = f; candidate = i; @@ -765,14 +765,14 @@ opvp_get_papertable_index( } else if (prev != paper_w) { prev = paper_w; if (paper_w < width) { - if ((f = fabsf(width - paper_w)) < TOLERANCE) { + if ((f = fabs(width - paper_w)) < TOLERANCE) { if (f < sw_delta) { sw_delta = f; smaller = i; } } } else { - if ((f = fabsf(width - paper_w)) < TOLERANCE) { + if ((f = fabs(width - paper_w)) < TOLERANCE) { if (f < lw_delta) { lw_delta = f; larger = i; @@ -791,7 +791,7 @@ opvp_get_papertable_index( sh_delta = 0; s_candi = i; break; - } else if ((f = fabsf(height - paper_h)) + } else if ((f = fabs(height - paper_h)) < TOLERANCE) { if (f < sh_delta) { sh_delta = f; @@ -808,7 +808,7 @@ opvp_get_papertable_index( lh_delta = 0; l_candi = i; break; - } else if ((f = fabsf(height - paper_h)) + } else if ((f = fabs(height - paper_h)) < TOLERANCE) { if (f < lh_delta) { lh_delta = f;