On Wed, 12 Mar 2003, Maurilio Longo wrote: > I fear that cpu speed is inside a long int and this shoud explain why it happens, I'd > > like to know from someone who writes dosemu if this is true and how they plan to fix > this.
it's a multiplication that overflows from an int -- try this patch: --- dosemu-1.1.4.13/src/base/init/config.c Sat Feb 15 14:49:31 2003 +++ dosemu-1.1.4.14/src/base/init/config.c Wed Mar 12 14:38:28 2003 @@ -484,7 +484,7 @@ cdd[6]=0; sscanf(cdd,"%d",&df); /* speed division factor to get 1us from CPU clocks - for * details on fast division see timers.h */ - chz = (di * 1000000) + df; + chz = (di * 1000000LL) + df; /* speed division factor to get 1us from CPU clock */ config.cpu_spd = (LLF_US*1000000)/chz; - To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html