summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:11:25 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:11:25 +0000
commit30e8153ef2e45031e8361e2e97f21b9c93a55c79 (patch)
treefeb4a2080b18cff8d9e5b2ded8f709c7490c0bcb
parent1bc5accffe15b5029745a502c727d7d980e94a59 (diff)
Updated dist to initialize to INT_MAX (2^31 - 1) instead of UINT_MAX
(2^32-1). git-svn-id: file:///fltk/svn/fltk/trunk@317 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--test/glpuzzle.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/glpuzzle.cxx b/test/glpuzzle.cxx
index 774e75a2f..0778bf2b7 100644
--- a/test/glpuzzle.cxx
+++ b/test/glpuzzle.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: glpuzzle.cxx,v 1.6 1999/01/07 19:17:55 mike Exp $"
+// "$Id: glpuzzle.cxx,v 1.7 1999/02/22 21:11:25 mike Exp $"
//
// OpenGL puzzle demo for the Fast Light Tool Kit (FLTK).
//
@@ -802,7 +802,7 @@ selectPiece(int mousex, int mousey)
return 0;
}
closest = 0;
- dist = 4294967295;
+ dist = 2147483647;
while (hits) {
if (selectBuf[(hits - 1) * 4 + 1] < dist) {
dist = selectBuf[(hits - 1) * 4 + 1];
@@ -1479,5 +1479,5 @@ main(int argc, char **argv)
#endif // added for fltk's distribution
//
-// End of "$Id: glpuzzle.cxx,v 1.6 1999/01/07 19:17:55 mike Exp $".
+// End of "$Id: glpuzzle.cxx,v 1.7 1999/02/22 21:11:25 mike Exp $".
//