leahneukirchen / dosfetch

NeoFetch clone for DOS
150 stars 7 forks source link

disksize(): Treat registers as unsigned integers #6

Closed vain closed 1 year ago

vain commented 1 year ago

This should fix some of the negative numbers that we're seeing.

(Note that longint is still signed. Free Pascal knows longword, but I don’t think that Turbo Pascal does. Not sure how one could fix this.)

leahneukirchen commented 1 year ago

I guess we could also try to divide out the sector size first.