D 2007-11-30T09:17:40 J assignee nobody J cmimetype text/plain J comment Tcl8.4.12\sis\snot\scompatible\swith\sTcl8.3.2\sin\sthe\sfollowing\sexample,\sso\sI\shave\sto\sfind\sa\sway\sto\smake\sthe\sresult\sequal.\n\nThe\sexample:\nset\svar1\s"-2147483647"\nif\s{\s$var1\s==\s0x80000001\s}\s{\n\s\s\s\sset\sres\s"ok";\n}\selse\s{\n\s\s\s\sset\sres\s"nok";\n}\n\nI\schecked\sthe\stcl8.4.12's\sconfigure\sfile\sand\smodified\sthe\sline\s4637\sto\slet\sthe\sconfigure\sprocess\salways\senters\sthe\s"if\scondition",so\sTCL_WIDE_INT_IS_LONG\sis\sdefined\sto\s1.\sAnd\sthen\smake\sand\smake\sinstall\sto\sbuild\sthe\stcl\slib.\s\n\n\s\s4637\s\s\s\s\s\s#if\stest\s"${tcl_cv_type_64bit}"\s=\snone\s;\sthen\n\s\s4638\s\s\s\s\s\sif\stest\s"test"\s=\s"test"\s;\sthen\n\s\s4639\s\s\s\s\s\s\s\s\s\scat\s>>\sconfdefs.h\s<<\\EOF\n\s\s4640\s\s#define\sTCL_WIDE_INT_IS_LONG\s1\n\s\s4641\s\sEOF\n\s\s4642\n\s\s4643\s\s\s\s\s\s\s\s\s\secho\s"$ac_t""using\slong"\s1>&6\n\s\s4644\s\s\s\s\s\selse\n\s\s4645\s\s\s\s\s\s\s\s\s\scat\s>>\sconfdefs.h\s<\sUINT_MAX)\n\s\s\s\s&&\s((w\s>\sUINT_MAX)\s||\s(w\s<\s-(Tcl_WideInt)UINT_MAX)))\s{\nif\s(interp\s!=\sNULL)\s{\n\s\s\s\sTcl_SetObjResult(interp,\sTcl_NewStringObj(\n"integer\svalue\stoo\slarge\sto\srepresent\sas\snon-long\sinteger",\n-1));\n}\nreturn\sTCL_ERROR;\n\nThe\sconfigure\scommand\sI\suse\sin\ssolaris\s8\sis\s:\nenv\sCC=cc\s./configure\s--enable-threads\s--disable-64bit\s--disable-64bit-vis\s-prefix=/home/test/tcl8412\n\nAnyone\sprovide\sa\ssolution\sfor\sthe\sabove?\sThe\srequirement\sis\svery\ssimple:\sjust\sto\smake\stcl8.4.12\sact\sas\sthe\ssame\sas\stcl8.3.2\sin\sthe\sabove\stcl\sscript.\n\nThanks\sand\sRegards\nJun J foundin None J is_private 0 J priority 5\sMedium J resolution None J status Open J submitter nobody J subsystem None J title Compatibility\sissues\sabout\s32-bit\sintegers\sand\swide\sintegers J type RFE K 1841548fffffffffffffffffffffffffffffffff U nobody Z a4c91fdb827355c2ba41281ef3793083