Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • rts/Interpreter.c
    ... ... @@ -2599,11 +2599,11 @@ run_BCO:
    2599 2599
     #define SIZED_BIN_OP_TY_INT(op,ty)                                      \
    
    2600 2600
     {                                                                       \
    
    2601 2601
         if(sizeof(ty) > sizeof(StgWord)) {                                  \
    
    2602
    -        ty r = ((ty) ReadSpW64(0)) op ((ty) ReadSpW(2));                \
    
    2602
    +        ty r = ((ty) ReadSpW64(0)) op ((StgInt) ReadSpW(2));                \
    
    2603 2603
             Sp_addW(1);                                                     \
    
    2604 2604
             SpW64(0) = (StgWord64) r;                                       \
    
    2605 2605
         } else {                                                            \
    
    2606
    -        ty r = ((ty) ReadSpW(0)) op ((ty) ReadSpW(1));                  \
    
    2606
    +        ty r = ((ty) ReadSpW(0)) op ((StgInt) ReadSpW(1));                  \
    
    2607 2607
             Sp_addW(1);                                                     \
    
    2608 2608
             SpW(0) = (StgWord) r;                                           \
    
    2609 2609
         };                                                                  \