Skip to content

Fix MSVC C4312 warning when casting 32bit ints to pointer types on 64bit builds

David Beinder requested to merge dbeinder/kicad:c4312_take2 into master

Fixes another instance of !829 (merged)

C:\proj\kicad\include\tool\tool_event.h(452): warning C4312: 'reinterpret_cast': conversion from 'T' to 'void *' of greater size
          with
          [
              T=long
          ]
C:\proj\kicad\common\tool\common_tools.cpp(146): note: see reference to function template instantiation 'void TOOL_EVENT::SetParameter<long>(T)' being compiled
          with
          [
              T=long
          ]

Merge request reports