Login  Register

Re: MSVC 2022 LibreCAD build

Posted by Rahooty on Dec 05, 2023; 12:27pm
URL: https://forum.librecad.org/MSVC-2022-LibreCAD-build-tp5723976p5723986.html

I'm assuming you are using mingw64 ?

Just curious,
How does Mingw handle something like this:


void Func1(short) {}
void Func2(int) {}
void Func3(long) {}
void Func4(size_t) {}

int main() {
   size_t bufferSize = 10;
   Func1(bufferSize);   // C4267 for all platforms
   Func2(bufferSize);   // C4267 only for 64-bit platforms
   Func3(bufferSize);   // C4267 only for 64-bit platforms
   Func4(bufferSize);   // OK for all platforms
}