mingw64 compilation fail
Bug #1180657 reported by
sugeng anto
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Compilation using mingw64 on windows 7 64-bit is failed:
...common/
...common/
perhaps this is because the pointer in 64-bit and 32-bit has different size.
thanks
tags: | added: compilation windows |
Changed in kicad: | |
status: | New → Fix Released |
To post a comment you must log in.
On 05/16/2013 12:21 AM, sugeng anto wrote: class_layer_ box_selector. cpp: In member function 'LAYER_NUM LAYER_BOX_ SELECTOR: :GetLayerSelect ion() const': class_layer_ box_selector. cpp: 70:70: error: cast from 'void*' to 'long unsigned int' loses precision [-fpermissive]
> Public bug reported:
>
> Compilation using mingw64 on windows 7 64-bit is failed:
>
> ...common/
> ...common/
>
> perhaps this is because the pointer in 64-bit and 32-bit has different
> size.
Actually it is a bug in the compiler. This should be a warning at best. There is no
reason to dis-believe a cast.
(long unsigned int) is 32 bits. pointers are 64 bits. You can know that, put a cast in
there saying you don't care, and still get yelled at. That is a bug IMO.
Fix committed.