gnudatalanguage / gdl

GDL - GNU Data Language
GNU General Public License v2.0
277 stars 61 forks source link

OSX compiler (M1, M2?) and unsigned values (explains why test_format do not pass) #1881

Open GillesDuvert opened 2 months ago

GillesDuvert commented 2 months ago

Basicall the reason why test_format do not pass is not a format problem. It is just that linux:

GDL> r=-1d
GDL> z=fix(r,type=15)
GDL> z
  18446744073709551615
GDL> z[0]=r
GDL> z
  18446744073709551615

OSX:

GDL> r=-1d    
GDL> z=fix(r,type=15)
GDL> z
                     0
GDL> z[0]=r
GDL> z
                     0
GillesDuvert commented 2 months ago

related to #1877 ?

GillesDuvert commented 2 months ago

probably beacuse https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code#Audit-Code-that-Contains-Float-to-Int-Conversions