mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Disabled C4312 in the evaluate layer
We reinterpret cast int to T* (because someone might compare 0 to a ptr), which causes 4312 to fire when x64 platform is set. Fixes #148
This commit is contained in:
		| @@ -11,6 +11,7 @@ | ||||
| #ifdef _MSC_VER | ||||
| #pragma warning(push) | ||||
| #pragma warning(disable:4389) // '==' : signed/unsigned mismatch | ||||
| #pragma warning(disable:4312) // Converting int to T* using reinterpret_cast (issue on x64 platform) | ||||
| #endif | ||||
|  | ||||
| #include <cstddef> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský