CombatWombatEsq@lemmy.world to Programming@programming.dev · 11 days agoTIL: Why ARM Has a JavaScript Instructionnotnotp.comexternal-linkmessage-square24linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1external-linkTIL: Why ARM Has a JavaScript Instructionnotnotp.comCombatWombatEsq@lemmy.world to Programming@programming.dev · 11 days agomessage-square24linkfedilinkfile-text
minus-squarearty@feddit.orglinkfedilinkEnglisharrow-up0·9 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-up0·9 days agoIt is INT_MIN. Seems like a much more sensible value than 0 IMO.
minus-squarearty@feddit.orglinkfedilinkEnglisharrow-up0·9 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