MubinSkt has asked for the wisdom of the Perl Monks concerning the following question:
The INT_PTR as defined by Microsoft in some MSVC files running WinAPIs, is a __int64 in x64 configuration. because of this it is a type mismatch and generates warning C4244 - Severity Code Description Project File Line Suppression State Warning C4244 '=': conversion from 'INT_PTR' to 'I32', possible loss of data PhxProg2 C:\Strawberry\perl\lib\CORE\inline.h 2283 how possibly can we get around this, I believe this will be a problem everywhere the project configuration is x64 and INT_PTR is a __int64.
below is an example of the line having this warning, such multiple warnings exists. cx->blk_eval.old_cxsubix = PL_curstackinfo->si_cxsubix;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: C4244 Warning in inline.h file while using Win64 configuration
by hv (Prior) on Feb 15, 2023 at 18:25 UTC | |
by MubinSkt (Novice) on Feb 21, 2023 at 17:36 UTC | |
by hv (Prior) on Feb 22, 2023 at 00:20 UTC | |
|
Re: C4244 Warning in inline.h file while using Win64 configuration
by swl (Prior) on Feb 16, 2023 at 02:06 UTC | |
|
Re: C4244 Warning in inline.h file while using Win64 configuration
by haukex (Archbishop) on Feb 15, 2023 at 16:42 UTC | |
|
Re: C4244 Warning in inline.h file while using Win64 configuration
by Anonymous Monk on Feb 16, 2023 at 14:06 UTC |