File:  [Micropolis - Activity] / micropolis / src / tclx / ucbsrc / tclexpr.dif
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Mar 11 09:08:51 2020 UTC (6 years, 4 months ago) by root
Branches: donhopkins, MAIN
CVS tags: activity, HEAD
Micropolis Activity

*** ../../tcl6.4/tclExpr.c	Mon Mar 23 09:54:06 1992
--- tclExpr.c	Tue Oct  6 17:20:10 1992
***************
*** 1318,1324
  	if (value.type == TYPE_INT) {
  	    sprintf(interp->result, "%ld", value.intValue);
  	} else if (value.type == TYPE_DOUBLE) {
! 	    sprintf(interp->result, "%g", value.doubleValue);
  	} else {
  	    if (value.pv.buffer != value.staticSpace) {
  		interp->result = value.pv.buffer;

--- 1318,1324 -----
  	if (value.type == TYPE_INT) {
  	    sprintf(interp->result, "%ld", value.intValue);
  	} else if (value.type == TYPE_DOUBLE) {
! 	    Tcl_ReturnDouble (interp, value.doubleValue);
  	} else {
  	    if (value.pv.buffer != value.staticSpace) {
  		interp->result = value.pv.buffer;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.