diff options
author | Paulo Matos <pmatos@linki.tools> | 2021-03-10 19:20:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 10:20:12 -0800 |
commit | 752d3080c3a648c86a2625067973870ca043cd77 (patch) | |
tree | 807d5ac30c08bd40b4194c771d34dcc88c88f742 /src | |
parent | a1187630835e747ba7609296ab0ecb85df0b07b2 (diff) | |
download | binaryen-752d3080c3a648c86a2625067973870ca043cd77.tar.gz binaryen-752d3080c3a648c86a2625067973870ca043cd77.tar.bz2 binaryen-752d3080c3a648c86a2625067973870ca043cd77.zip |
Use uint32_t for Event Attribute in API (#3671)
Diffstat (limited to 'src')
-rw-r--r-- | src/binaryen-c.cpp | 2 | ||||
-rw-r--r-- | src/binaryen-c.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index b9bf9752f..d6701f540 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -3996,7 +3996,7 @@ BinaryenExpressionRef BinaryenGlobalGetInitExpr(BinaryenGlobalRef global) { const char* BinaryenEventGetName(BinaryenEventRef event) { return ((Event*)event)->name.c_str(); } -int BinaryenEventGetAttribute(BinaryenEventRef event) { +uint32_t BinaryenEventGetAttribute(BinaryenEventRef event) { return ((Event*)event)->attribute; } BinaryenType BinaryenEventGetParams(BinaryenEventRef event) { diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 881b0fddc..1841c919e 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -2473,7 +2473,7 @@ BinaryenGlobalGetInitExpr(BinaryenGlobalRef global); // Gets the name of the specified `Event`. BINARYEN_API const char* BinaryenEventGetName(BinaryenEventRef event); // Gets the attribute of the specified `Event`. -BINARYEN_API int BinaryenEventGetAttribute(BinaryenEventRef event); +BINARYEN_API uint32_t BinaryenEventGetAttribute(BinaryenEventRef event); // Gets the parameters type of the specified `Event`. BINARYEN_API BinaryenType BinaryenEventGetParams(BinaryenEventRef event); // Gets the results type of the specified `Event`. |