diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2007-10-31 00:05:53 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2007-10-31 00:05:53 (GMT) |
commit | 9484ae1c4377c8645247fd5111fa156755e7ea22 (patch) | |
tree | 725411d7c5a0246b447ff0f328f6cdfd86acf997 /generic/tkObj.c | |
parent | 267146b4985c6b6dfedbfa2373ec57a92b6307e5 (diff) | |
download | tk-9484ae1c4377c8645247fd5111fa156755e7ea22.zip tk-9484ae1c4377c8645247fd5111fa156755e7ea22.tar.gz tk-9484ae1c4377c8645247fd5111fa156755e7ea22.tar.bz2 |
Use -fp:strict with msvc8 as -fp:precise fails on amd64 builds. Fix
the two places in Tk that generate errors with msvc8 when using this
flag.
Diffstat (limited to 'generic/tkObj.c')
-rw-r--r-- | generic/tkObj.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkObj.c b/generic/tkObj.c index 7186d4d..5997a2f 100644 --- a/generic/tkObj.c +++ b/generic/tkObj.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkObj.c,v 1.17 2007/10/15 07:24:49 das Exp $ + * RCS: @(#) $Id: tkObj.c,v 1.18 2007/10/31 00:05:53 patthoyts Exp $ */ #include "tkInt.h" @@ -154,7 +154,7 @@ Tk_GetPixelsFromObj( double d; PixelRep *pixelPtr; static double bias[] = { - 1.0, 10.0, 25.4, 25.4 / 72.0 + 1.0, 10.0, 25.4, 0.35278 /*25.4 / 72.0*/ }; if (objPtr->typePtr != &pixelObjType) { @@ -390,7 +390,7 @@ Tk_GetMMFromObj( double d; MMRep *mmPtr; static double bias[] = { - 10.0, 25.4, 1.0, 25.4 / 72.0 + 10.0, 25.4, 1.0, 0.35278 /*25.4 / 72.0*/ }; if (objPtr->typePtr != &mmObjType) { @@ -513,7 +513,7 @@ UpdateStringOfMM( } Tcl_PrintDouble(NULL, mmPtr->value, buffer); - len = strlen(buffer); + len = (int)strlen(buffer); objPtr->bytes = (char *) ckalloc((unsigned) len + 1); strcpy(objPtr->bytes, buffer); |