diff options
author | Paulo Matos <pmatos@linki.tools> | 2021-05-06 19:17:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 10:17:46 -0700 |
commit | c84116dd715c3e548f6de1b8d2e2c29b5e248132 (patch) | |
tree | bb1cc85468243651652aef28efb76401397b3993 | |
parent | 14506179e55978d5f8ef4547d05f8d134bdc4c6b (diff) | |
download | binaryen-c84116dd715c3e548f6de1b8d2e2c29b5e248132.tar.gz binaryen-c84116dd715c3e548f6de1b8d2e2c29b5e248132.tar.bz2 binaryen-c84116dd715c3e548f6de1b8d2e2c29b5e248132.zip |
Fix typo in function name: BinayenElementSegmentIsPassive (#3862)
Becomes BinaryenElementSegmentIsPassive
-rw-r--r-- | src/binaryen-c.cpp | 2 | ||||
-rw-r--r-- | src/binaryen-c.h | 2 | ||||
-rw-r--r-- | test/example/c-api-multiple-tables.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/binaryen-c.cpp b/src/binaryen-c.cpp index c91c15422..4d0a04718 100644 --- a/src/binaryen-c.cpp +++ b/src/binaryen-c.cpp @@ -4045,7 +4045,7 @@ void BinaryenElementSegmentSetTable(BinaryenElementSegmentRef elem, const char* table) { ((ElementSegment*)elem)->table = table; } -bool BinayenElementSegmentIsPassive(BinaryenElementSegmentRef elem) { +bool BinaryenElementSegmentIsPassive(BinaryenElementSegmentRef elem) { return ((ElementSegment*)elem)->table.isNull(); } diff --git a/src/binaryen-c.h b/src/binaryen-c.h index 47d255749..8e436de66 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -2490,7 +2490,7 @@ BinaryenElementSegmentGetData(BinaryenElementSegmentRef elem, BinaryenIndex dataId); // Returns true if the specified elem segment is passive BINARYEN_API bool -BinayenElementSegmentIsPassive(BinaryenElementSegmentRef elem); +BinaryenElementSegmentIsPassive(BinaryenElementSegmentRef elem); // // ========== Global Operations ========== diff --git a/test/example/c-api-multiple-tables.c b/test/example/c-api-multiple-tables.c index c19dcdb6f..d9d812d3d 100644 --- a/test/example/c-api-multiple-tables.c +++ b/test/example/c-api-multiple-tables.c @@ -51,7 +51,7 @@ int main() { BinaryenConst(module, BinaryenLiteralInt32(0))); BinaryenAddPassiveElementSegment(module, "passive", funcNames, 1); assert(NULL != BinaryenGetElementSegmentByIndex(module, 2)); - assert(1 == BinayenElementSegmentIsPassive( + assert(1 == BinaryenElementSegmentIsPassive( BinaryenGetElementSegment(module, "passive"))); BinaryenTableRef t2 = BinaryenGetTableByIndex(module, 1); assert(t2 != NULL); |