diff --git a/commands/CmdCD.c b/commands/CmdCD.c index 4fd36902..052f4598 100644 --- a/commands/CmdCD.c +++ b/commands/CmdCD.c @@ -431,7 +431,7 @@ CmdCalma( #ifdef MAGIC_WRAPPER Tcl_SetObjResult(magicinterp, Tcl_NewDoubleObj((double)CalmaMagScale)); #else - TxPrintf("Text magnification 1.0 = %g microns.\n"); + TxPrintf("Text magnification 1.0 = %g microns.\n", (double)CalmaMagScale); #endif return; } @@ -744,7 +744,7 @@ CmdCalma( #ifdef MAGIC_WRAPPER Tcl_SetObjResult(magicinterp, Tcl_NewBooleanObj(CalmaNoDuplicates)); #else - TxPrintf("Cell defs that exist before reading GDS will not be paresd.\n", + TxPrintf("Cell defs that exist before reading GDS will %sbe parsed.\n", (CalmaNoDuplicates) ? "not " : ""); #endif return; @@ -764,7 +764,7 @@ CmdCalma( #ifdef MAGIC_WRAPPER Tcl_SetObjResult(magicinterp, Tcl_NewBooleanObj(CalmaUnique)); #else - TxPrintf("Cell defs that exist before reading GDS will be renamed.\n", + TxPrintf("Cell defs that exist before reading GDS will %sbe renamed.\n", (CalmaUnique) ? "not " : ""); #endif return; diff --git a/commands/CmdLQ.c b/commands/CmdLQ.c index 24191979..eed0379d 100644 --- a/commands/CmdLQ.c +++ b/commands/CmdLQ.c @@ -2435,14 +2435,14 @@ printPropertiesFunc( } else { - keyvalue = (char *)mallocMagic(strlen(name) + strlen((char *)value) + 2); - sprintf(keyvalue, "%s %s", name, (char *)value); + keyvalue = (char *)mallocMagic(strlen(name) + strlen((const char *)value) + 2); + sprintf(keyvalue, "%s %s", name, (const char *)value); } Tcl_AppendElement(magicinterp, keyvalue); freeMagic(keyvalue); #else - TxPrintf("%s = %s\n", name, value); + TxPrintf("%s = %s\n", name, (const char *)value); #endif return 0; /* keep the search alive */ diff --git a/commands/CmdRS.c b/commands/CmdRS.c index d81d611a..e19825ac 100644 --- a/commands/CmdRS.c +++ b/commands/CmdRS.c @@ -99,7 +99,7 @@ CmdRandom( #ifdef MAGIC_WRAPPER Tcl_SetObjResult(magicinterp, Tcl_NewIntObj(random())); #else - TxPrintf("%d", random()); + TxPrintf("%ld", random()); #endif } else if ((cmd->tx_argc >= 2) && (!strcmp(cmd->tx_argv[1], "seed"))) diff --git a/commands/CmdWizard.c b/commands/CmdWizard.c index 41ea0577..2e72d053 100644 --- a/commands/CmdWizard.c +++ b/commands/CmdWizard.c @@ -981,7 +981,7 @@ cmdTsrFunc( Tile *tp) { if (cmdTsearchDebug) - TxPrintf("%lx\n", (intmax_t) tp); + TxPrintf("%lx\n", (intptr_t) tp); numTilesFound++; return 0; }