CombatWombatEsq@lemmy.world to Programming@programming.dev · 7 days agoTIL: Why ARM Has a JavaScript Instructionnotnotp.comexternal-linkmessage-square31linkfedilinkarrow-up158arrow-down11file-text
arrow-up157arrow-down1external-linkTIL: Why ARM Has a JavaScript Instructionnotnotp.comCombatWombatEsq@lemmy.world to Programming@programming.dev · 7 days agomessage-square31linkfedilinkfile-text
minus-squarearty@feddit.orglinkfedilinkEnglisharrow-up1arrow-down4·6 days ago Try interacting with anything that uses u64 and you’ll be a lot less happy! I’m sorry you had to experience this, but in all my years of development I hadn’t. …not actually quite as bad… While it’s UB for C, and it can return garbage. … the value it returns is 0x8000 0x8000 is garbage. Insane.
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up4·6 days agoIt is INT_MIN. Seems like a much more sensible value than 0 IMO.
minus-squarearty@feddit.orglinkfedilinkEnglisharrow-up0arrow-down3·6 days agoObviously, opinions vary here as well
I’m sorry you had to experience this, but in all my years of development I hadn’t.
0x8000 is garbage. Insane.
It is INT_MIN. Seems like a much more sensible value than 0 IMO.
Obviously, opinions vary here as well