Saki@lemmy.blahaj.zone to linux4noobs@programming.devEnglish · 3 months agoI get this error when trying to build fbterm, is it possible to fix?lemmy.blahaj.zoneimagemessage-square2fedilinkarrow-up19arrow-down10file-text
arrow-up19arrow-down1imageI get this error when trying to build fbterm, is it possible to fix?lemmy.blahaj.zoneSaki@lemmy.blahaj.zone to linux4noobs@programming.devEnglish · 3 months agomessage-square2fedilinkfile-text
minus-squarelurch (he/him)linkfedilinkEnglisharrow-up2·3 months agoMaybe. It’s a type error. The -1 can’t go into an unsigned type, because the “-” is the sign. I’m afraid to be sure you’re doing it right, you have to understand the surrounding code. But possible fixes include: Changing -1 to an unsigned number. Changing the type of the variable it goes into. Something entirely different, maybe even deleting that part of the code.
Maybe. It’s a type error. The -1 can’t go into an unsigned type, because the “-” is the sign.
I’m afraid to be sure you’re doing it right, you have to understand the surrounding code.
But possible fixes include:
Changing -1 to an unsigned number.
Changing the type of the variable it goes into.
Something entirely different, maybe even deleting that part of the code.