2010-06-22 17:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/macro/macro.yyc
  * src/macro/macro.y
    + Added cast (similar to the one found in compiler .y code) 
      to pacify long time msvc warning.
This commit is contained in:
Viktor Szakats
2010-06-22 15:00:49 +00:00
parent 496ea57dae
commit 161c55cf8e
3 changed files with 8 additions and 3 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-06-22 17:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/macro/macro.yyc
* src/macro/macro.y
+ Added cast (similar to the one found in compiler .y code)
to pacify long time msvc warning.
2010-06-22 16:50 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/dynsym.c
* include/hbapi.h

View File

@@ -280,7 +280,7 @@ NumValue : NUM_DOUBLE { $$ = hb_compExprNewDouble( $1.dNumber, $1.bWidth
| NUM_LONG { $$ = hb_compExprNewLong( $1.lNumber, HB_COMP_PARAM ); }
;
DateValue : NUM_DATE { $$ = hb_compExprNewDate( $1.lNumber, HB_COMP_PARAM ); }
DateValue : NUM_DATE { $$ = hb_compExprNewDate( ( long ) $1.lNumber, HB_COMP_PARAM ); }
;
TimeStampValue : TIMESTAMP { $$ = hb_compExprNewTimeStamp( $1.date, $1.time, HB_COMP_PARAM ); }

View File

@@ -2116,7 +2116,7 @@ yyreduce:
case 7:
#line 283 "macro.y"
{ (yyval.asExpr) = hb_compExprNewDate( (yyvsp[(1) - (1)].valLong).lNumber, HB_COMP_PARAM ); ;}
{ (yyval.asExpr) = hb_compExprNewDate( ( long ) (yyvsp[(1) - (1)].valLong).lNumber, HB_COMP_PARAM ); ;}
break;
case 8:
@@ -3408,4 +3408,3 @@ int hb_macrolex( YYSTYPE *yylval_ptr, HB_MACRO_PTR pMacro )
}
#endif /* HB_MACRO_PPLEX */