From: Dmitry Y. <di...@us...> - 2006-05-31 15:08:39
|
Build Version : T2.1.0.13176 Firebird 2.1 Unstable (writeBuildNum.sh,v 1.13331 2006/05/31 15:08:35 dimitr Exp ) Update of /cvsroot/firebird/firebird2/src/extlib In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv18582 Modified Files: ib_udf.cpp Log Message: VS8.0 has two implementations of div(). Let's explicitly use the int-aware one. Index: ib_udf.cpp =================================================================== RCS file: /cvsroot/firebird/firebird2/src/extlib/ib_udf.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -b -U3 -r1.6 -r1.7 --- ib_udf.cpp 7 Dec 2004 00:29:40 -0000 1.6 +++ ib_udf.cpp 31 May 2006 15:08:31 -0000 1.7 @@ -136,7 +136,7 @@ double EXPORT IB_UDF_div( long *a, long *b) { if (*b != 0) { - div_t div_result = div(*a, *b); + div_t div_result = div((int) *a, (int) *b); return (div_result.quot); } else @@ -248,7 +248,7 @@ double EXPORT IB_UDF_mod( long *a, long *b) { if (*b != 0) { - div_t div_result = div(*a, *b); + div_t div_result = div((int) *a, (int) *b); return (div_result.rem); } else |