Skip to content

math: Different results using x86 and x64 versions of Go 1 #3423

@gopherbot

Description

@gopherbot

by phrozen10:

Hi, today I installed Go 1 windows 386 on my office machine and run a program I've been
working on to learn Go. Everything went fine and the output image rendered correctly.
Then I came home and installed Go 1 windows amd64 version, just to find out the
resulting image was totally awkward, I uninstalled the amd64 version and installed 386
and run the program and the output went as expected.

Here is the program
https://gist.github.com/2231611 
go run main.go <-- should produce a png, no other than std libs required, vanilla
installation of Go 1

http://tinypic.com/r/2ec29g1/5 <-- 386 (correct)
http://tinypic.com/r/34o5xu1/5 <-- amd64 (wrong)

I use float64 on most of the calculations apart from uint8 for the colors as expected to
the 'image/color' package. Some int here and there mainly for index.

*Attached the files to the issue.

Attachments:

  1. main.go (4922 bytes)
  2. go1_windows_386.png (1274572 bytes)
  3. go1_windows_amd64.png (1661377 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions