siderolabs / go-blockdevice

Mozilla Public License 2.0
18 stars 14 forks source link

fix: don't coerce to int #92

Closed attilaolah closed 6 months ago

attilaolah commented 6 months ago

unix.BLKBSZGET overflows int32, breaking compilation on 32-bit systems. Since a uintptr is needed, coerce the constants directly to uintptr instead of coercing first to a signed int.

smira commented 6 months ago

Thank you, I merged the fix into #93.