cvs commit: fptools/ghc/includes PrimOps.h

Julian Seward sewardj@glass.cse.ogi.edu
Tue, 9 Oct 2001 08:03:05 -0700


sewardj     2001/10/09 08:03:05 PDT

  Modified files:        (Branch: ghc-5-02-branch)
    ghc/includes         PrimOps.h 
  Log:
  merge rev 1.83:
  
    Fix a bug with arithmetic primops on platforms where StgInt is not int,
    such as the 64-bit Alpha.  The bug is that, for example,
  
        1# `iShiftL#` 32#
  
    returns zero rather than 2^32.  The reason is that we should cast the
    macro arguments to I_ in the definition of iShiftL#, but did not.
  
  Revision  Changes    Path
  1.82.4.1  +122 -122  fptools/ghc/includes/PrimOps.h