2010-11-20 12:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/common/expropt2.c
* casting
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
2010-11-20 12:58 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/src/common/expropt2.c
|
||||
* casting
|
||||
|
||||
2010-11-20 12:14 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* src/rtl/sha1hmac.h
|
||||
* src/rtl/sha1hmac.c
|
||||
|
||||
@@ -167,12 +167,12 @@ HB_EXPR_PTR hb_compExprReduceMod( HB_EXPR_PTR pSelf, HB_COMP_DECL )
|
||||
double dValue, dDivisor;
|
||||
|
||||
dDivisor = pRight->value.asNum.NumType == HB_ET_LONG ?
|
||||
pRight->value.asNum.val.l :
|
||||
( double ) pRight->value.asNum.val.l :
|
||||
pRight->value.asNum.val.d;
|
||||
if( dDivisor )
|
||||
{
|
||||
dValue = pLeft->value.asNum.NumType == HB_ET_LONG ?
|
||||
pLeft->value.asNum.val.l :
|
||||
( double ) pLeft->value.asNum.val.l :
|
||||
pLeft->value.asNum.val.d;
|
||||
pSelf->value.asNum.val.d = fmod( dValue, dDivisor );
|
||||
pSelf->value.asNum.bWidth = HB_DEFAULT_WIDTH;
|
||||
|
||||
Reference in New Issue
Block a user