Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2005-04-25
09:07 • Closed ticket [1188863fff]: HEAD will not compile on Windows plus 7 other ch... artifact: de0905d7db user: dgp
08:48 • Ticket [1188863fff]: 4 changes artifact: 5b47076f25 user: dgp
08:18 • Ticket [1188863fff]: 4 changes artifact: 5e7bcbadb0 user: dgp
2005-04-24
20:14 • Ticket [1188863fff]: 1 change artifact: fabd7c3b76 user: msofer
09:07 • New ticket [1188863fff]. artifact: 03b2d0b8a9 user: mistachkin

HEAD will not compile on Windows

Closed / Fixed1188863fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2005-04-24 09:07:32
ERROR #1: tclObj.c near line 1680:

    } else if (objPtr->typePtr == &tclIntType) {
*dblPtr = objPtr->internalRep.longValue;
return TCL_OK;

VC++ does not like this.

..\generic\tclObj.c(1680) : error C2220: warning
treated as error - no object file generated
..\generic\tclObj.c(1680) : warning C4244: '=' :
conversion from '__int64 ' to 'double ', possib
le loss of data

If this is the true intention of this code, an explicit
cast to double should be used.

ERROR #2: tclLiteral.c near line 274:

    long n;
    char buf[TCL_INTEGER_SPACE];

Two stale local vars are in TclRegisterLiteral:

..\generic\tclLiteral.c(274) : error C2220: warning
treated as error - no object file generated
..\generic\tclLiteral.c(274) : warning C4101: 'buf' :
unreferenced local variable
..\generic\tclLiteral.c(273) : warning C4101: 'n' :
unreferenced local variable

They are only referenced in a block that has been "#if
zero'd" out.  The best fix is to move the variable
declarations into the "#if 0" block near line 368.
msofer Ticket [1188863fff]: 1 change [History diff]2005-04-24 20:14:06
dgpplain2005-04-25 08:18:43
Logged In: YES 
user_id=80530


hmmm... those look like compiler
warnings rather than errors to me.

Just the same, thanks for the notice.
Will get to fixing them.
dgpplain2005-04-25 08:48:06
Logged In: YES 
user_id=80530

um, the first reported error is
not new code.  Is it a new error?

hmmm.. from the _int64 in the
message, the error is probably
in the wide -> double assignment
which is new.
dgpplain2005-04-25 09:07:39
Logged In: YES 
user_id=80530

fixed.
Log in (anonymous is fine) to add a comment.