Overview
| Artifact ID: | 6c1a849f6a5edf56f6eac99ca8c7b92d02b618dd |
|---|---|
| Ticket: | 1917650fffffffffffffffffffffffffffffffff
Tcl_ConvertToType(, , doubleType) incompatibility |
| User & Date: | ferrieux on 2008-05-31 17:30:17 |
Changes
- icomment:
Logged In: YES user_id=496139 Originator: NO Don, while I agree about the recommended way, I'm wondering whether it is wise to have a setFromAny function fork in such a weak fashion. Indeed, SetDoubleFromAny just delegates to TclParseNumber which has a very broad spectrum... In addition, I propose a slight style fix in Tcl_GetDoubleFromObj: a permutation of the two lines: *dblPtr = (double) objPtr->internalRep.doubleValue; and *dblPtr = objPtr->internalRep.longValue; which occur in the wrong cases (the (double) cast occurs on an already-double value, and the cast-less assignment effectively casts an long to a double...).
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"