Skip to content

Commit 745b8b7

Browse files
authored
Pointer can be const void* in GenericWireType (#21539)
...as it had already been prior to abeba41 "[Wasm64] Initial work for get parts of embind working". It being non-const caused some issue for client code at <https://git.libreoffice.org/core/+/98c42f7e961e77d7f1c02d53862e4e78ecd07653%5E!> "Adapt to emsdk 3.1.46". Co-authored-by: Stephan Bergmann <[email protected]>
1 parent 918e131 commit 745b8b7

File tree

1 file changed

+1
-1
lines changed
  • system/include/emscripten

1 file changed

+1
-1
lines changed

system/include/emscripten/val.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ union GenericWireType {
207207
unsigned u;
208208
size_t s;
209209
float f;
210-
void* p;
210+
const void* p;
211211
} w[2];
212212
double d;
213213
uint64_t u;

0 commit comments

Comments
 (0)