Two typos in extensions/XInput.d
tychonievich opened this issue · comments
XInput.d line 34 is
auto FindTypeAndClass(A,B,C,D,E)(ref A d, ref B type, ref C _class, ref D classid, ref E offset){
but FindTypeAndClass
is invoked with enum
values for its last to arguments on lines 46–136 and enum
s are evaluated as values at compile time and cannot be passed by reference; it ought to be
auto FindTypeAndClass(A,B,C,D,E)(ref A d, ref B type, ref C _class, D classid, E offset){
instead.
XInput.d line 713 is
alias XValuatorInfoPtr = XAxisInfo*;
It ought to be
alias XValuatorInfoPtr = XValuatorInfo*;
instead.
Thanks for the report.
Fixed: 3ec5846
https://github.com/nomad-software/x11/releases/tag/v1.0.10
http://code.dlang.org/packages/x11