Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread sisyphus1
-Original Message- From: Vincent Torri Sent: Wednesday, April 18, 2018 1:12 AM To: mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw-w64-public] sizeof long https://msdn.microsoft.com/ro-ro/library/s3f49ktz.aspx https://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread jpmugaas
That's the way it for Windows and the behavior is the same for Microsoft Visual C++.And since it's been that way for so long, changing it would break a lot of code even if it were possible. This behavior is different than in Linux where types would grow to 8 bytes. -Original Message- Fro

Re: [Mingw-w64-public] Shell is stripping curly braces

2018-04-17 Thread Liu Hao
在 2018/4/17 7:08, Robert Dailey 写道: > I have been trying to chase down a [bug I found][1] over on the Git > for Windows project. The short version of the issue is that specifying > a parameter like "@{-1}" with a git alias gets converted to "@-1". > Visit link #1 for more detail on that. > > I had

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Carl Kleffner
Sorry typo: the LP64 data modell is valid for the cygwin64 toolchain. That means long is 8 bytes. 2018-04-17 17:17 GMT+02:00 Carl Kleffner : > The 64-bit compiler within cygwin64 supports the ILP64 data model, see > https://cygwin.com/cygwin-ug-net/programming.html > > 2018-04-17 17:12 GMT+02:00

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Carl Kleffner
The 64-bit compiler within cygwin64 supports the ILP64 data model, see https://cygwin.com/cygwin-ug-net/programming.html 2018-04-17 17:12 GMT+02:00 Vincent Torri : > On Tue, Apr 17, 2018 at 4:58 PM, wrote: > > Hi, > > > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > > Does i

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Vincent Torri
On Tue, Apr 17, 2018 at 4:58 PM, wrote: > Hi, > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > Does it absolutely have to be that way ? Would it be possible to design > a switch that would enable 8 byte longs ? > > The mismatch between linux and windows in this regard is

Re: [Mingw-w64-public] sizeof long

2018-04-17 Thread Norbert Pfeiler
http://en.cppreference.com/w/cpp/language/types#Data_models On Tue, Apr 17, 2018 at 3:59 PM wrote: > Hi, > > Why is it that on our x86_64 compilers sizeof long is only 4 ? > Does it absolutely have to be that way ? Would it be possible to > design > a switch that would enable 8 byte longs ?

[Mingw-w64-public] sizeof long

2018-04-17 Thread sisyphus1
Hi, Why is it that on our x86_64 compilers sizeof long is only 4 ? Does it absolutely have to be that way ? Would it be possible to design a switch that would enable 8 byte longs ? The mismatch between linux and windows in this regard is a real pita, and I'm curious about the reason(s) that