[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Deity floating point exception on Alpha.



Hi, 

 I am not sure whether it is the right fix.Once i also got a SIGSEGV in
the gtkmodule. I was not able to reproduce it again.Right now i am
trying to reproduce the SIGSEGV. 

Thanks guys for this wonderful utility. 

-aneesh 

--- acquire.cc.old	2002-09-18 19:23:59.000000000 +0530
+++ acquire.cc	2002-09-18 19:31:54.000000000 +0530
@@ -418,6 +418,12 @@
 	DT.TotalBytes = TotalBytes;
 	DT.CurrentItems = CurrentItems;
 	DT.TotalItems = TotalItems;
+	/* To fix the FPE on Alpha
+	 * IF CurrentCPS is zero take it to be least 
+	 */
+	if(CurrentCPS == 0 )
+		CurrentCPS = 1;
+
 	DT.CurrentCPS = CurrentCPS;
 	DT.ETA = int((TotalBytes - CurrentBytes) / CurrentCPS);
 



Reply to: