summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-04-07 20:06:17 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-04-07 20:06:17 +0000
commit317105381da9e2fc3e226cc6e4942ff4b18cc062 (patch)
tree3b44a5290d7e605fe1f4bf593402e5eeb7fe1804 /test
parentb4b95029e85311580c40b84573acd5e00a78162d (diff)
VC++.NET support
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3378 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test')
-rw-r--r--test/threads.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/threads.cxx b/test/threads.cxx
index c39a30c20..b96e4149c 100644
--- a/test/threads.cxx
+++ b/test/threads.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: threads.cxx,v 1.10.2.4 2003/01/30 21:46:04 easysw Exp $"
+// "$Id: threads.cxx,v 1.10.2.5 2004/04/07 20:06:15 easysw Exp $"
//
// Threading example program for the Fast Light Tool Kit (FLTK).
//
@@ -61,7 +61,7 @@ void* prime_func(void* p)
// very simple prime number calculator !
for (; ; n+= step) {
int p;
- int hn = (int)sqrt(n);
+ int hn = (int)sqrt((double)n);
for (p=3; p<=hn; p+=2) if ( n%p == 0 ) break;
if (p >= hn) {
char s[128];
@@ -126,5 +126,5 @@ int main() {
//
-// End of "$Id: threads.cxx,v 1.10.2.4 2003/01/30 21:46:04 easysw Exp $".
+// End of "$Id: threads.cxx,v 1.10.2.5 2004/04/07 20:06:15 easysw Exp $".
//