Ticket #1335 (closed bug: worksforme)

Opened 6 years ago

Last modified 5 years ago

overflow in multiplication

Reported by: izulin@… Owned by:
Priority: normal Milestone: 6.8.2
Component: GHCi Version: 6.6.1
Keywords: overflow multiplication Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description (last modified by igloo) (diff)

*Main> 3492928512*3492928512
-6246194483767017472
cmTypeOfName: it
it :: Integer

in both 6.6.1 and 6.4.2

(works correct on 32bit)

Change History

Changed 6 years ago by simonmar

I don't see that behaviour here:

Prelude> 3492928512*3492928512
12200549589942534144

and this is the machine that built the x86_64 6.6.1 binary bundle, it should be exactly the same compiler.

Possibly a GMP problem?

Changed 6 years ago by igloo

  • description modified (diff)
  • milestone set to 6.8

I can't reproduce this either.

Where did your GHC come from? The bindist? A Linux distribution package? Compiled yourself?

Do you know if any mk/build.mk was used?

Changed 6 years ago by simonmar

  • status changed from new to closed
  • resolution set to worksforme

We can't reproduce it here, no further feedback from the submitter.

Changed 5 years ago by igloo

  • milestone changed from 6.8 branch to 6.8.2
Note: See TracTickets for help on using tickets.