Skip to content

Commit a542777

Browse files
committed
setting both BoneInfo fields to char makes it build
1 parent e3f1d16 commit a542777

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/generated/node-raylib.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ inline Transform TransformFromValue(const Napi::CallbackInfo& info, int index) {
265265

266266
inline BoneInfo BoneInfoFromValue(const Napi::CallbackInfo& info, int index) {
267267
return {
268-
pointerFromValue(info, index + 0),
268+
charFromValue(info, index + 0),
269269
charFromValue(info, index + 1)
270270
};
271271
}

tools/generate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ function getDefs () {
107107

108108
// temporary fix for building on Mac/Win? Wonder why this is necessary
109109
if (struct.name === 'BoneInfo') {
110+
struct.fields[0].type = 'char'
110111
struct.fields[1].type = 'char'
111112
}
112113

0 commit comments

Comments
 (0)