[uim-commit] r288 - trunk/uim
ekato@freedesktop.org
ekato@freedesktop.org
Fri Jan 14 09:08:59 PST 2005
Author: ekato
Date: 2005-01-14 09:08:40 -0800 (Fri, 14 Jan 2005)
New Revision: 288
Modified:
trunk/uim/slib.c
Log:
* uim/slib.c (Quotient) : Remove fail safe code for divided by
zero. Show error message instead in this case.
(Remainder) : Ditto.
Modified: trunk/uim/slib.c
===================================================================
--- trunk/uim/slib.c 2005-01-14 17:07:16 UTC (rev 287)
+++ trunk/uim/slib.c 2005-01-14 17:08:40 UTC (rev 288)
@@ -1604,7 +1604,7 @@
if NINTNUMP
(y) my_err ("wta(2nd) to quotient", y);
if (INTNM(y) == 0)
- return (intcons (0)); /* divided by 0 actually */
+ return (my_err ("divided by 0 in quotient", y));
else
return (intcons (INTNM (x) / INTNM (y)));
}
@@ -1623,7 +1623,7 @@
if NINTNUMP
(y) my_err ("wta(2nd) to remainder", y);
if (INTNM(y) == 0)
- return (intcons (INTNM (x))); /* divided by 0 actually */
+ return (my_err ("dividev by 0 in remainder", y));
else
return (intcons (INTNM (x) % INTNM (y)));
}
More information about the Uim-commit
mailing list