hidapi icon indicating copy to clipboard operation
hidapi copied to clipboard

Explicitly cast result of malloc/calloc

Open mark-grimes opened this issue 7 years ago • 1 comments

Previously getting invalid conversion from 'void*' to 'hid_device* {aka hid_device_*}' type errors when trying to compile.

I came across this when using the downstream project seneye/SUDDriver and thought it best to apply upstream too. Note that I've only tested with that project.

Compiler was arm-poky-linux-gnueabi-g++ (GCC) 7.2.0.

mark-grimes avatar Jul 06 '18 16:07 mark-grimes

Please consider making this PR at https://github.com/libusb/hidapi See #373

jonathancross avatar Jul 11 '19 01:07 jonathancross