Files
yibaiba 52c3711964 fix: pass Linux PC/SC DWORD as native unsigned long
libpcsclite uses 64-bit DWORD on amd64. Treating it as uint32 smashed the heap while listing readers at startup.
2026-09-09 09:54:01 +08:00

14 lines
274 B
Go

//go:build linux
package pcsc
// Linux pcsclite maps DWORD/LONG to unsigned long / long.
// On LP64 that is 64-bit; on 32-bit ARM it is 32-bit. Go uint/int match.
type pcscDword = uint
type pcscLong = int
type ioRequest struct {
Protocol pcscDword
Length pcscDword
}