Re: [GHC] #7365: rem function in ghci changes result when using the Int type

2012-10-24 Thread GHC
#7365: rem function in ghci changes result when using the Int type
-+--
 Reporter:  leonardo |  Owner:  
 Type:  bug  | Status:  new 
 Priority:  normal   |  Component:  GHCi
  Version:  7.4.1|   Keywords:  
   Os:  Windows  |   Architecture:  x86 
  Failure:  Incorrect result at runtime  |   Testcase:  
Blockedby:   |   Blocking:  
  Related:   |  
-+--

Comment(by michalt):

 I might be missing something but, I don't really see a bug here.
 ```3^112``` is way too big to fit into an ```Int```, so it will overflow.
 On the other hand ```Integer``` is an arbitrary-precision integer and
 should be able to represent this number correctly...

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #7365: rem function in ghci changes result when using the Int type

2012-10-24 Thread GHC
#7365: rem function in ghci changes result when using the Int type
--+-
  Reporter:  leonardo |  Owner: 
  Type:  bug  | Status:  closed 
  Priority:  normal   |  Milestone: 
 Component:  GHCi |Version:  7.4.1  
Resolution:  invalid  |   Keywords: 
Os:  Windows  |   Architecture:  x86
   Failure:  Incorrect result at runtime  | Difficulty:  Unknown
  Testcase:   |  Blockedby: 
  Blocking:   |Related: 
--+-
Changes (by igloo):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid


Comment:

 Agreed: Thanks for the report, but, this is just a case of Int overflow,
 not a bug in GHC.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs