summaryrefslogtreecommitdiff
path: root/test/example/c-api-unused-mem.cpp
diff options
context:
space:
mode:
authorPaulo Matos <pmatos@linki.tools>2021-03-17 21:47:02 +0100
committerGitHub <noreply@github.com>2021-03-17 13:47:02 -0700
commit8ea6e13fe18b69419411edfd979ce15302820da2 (patch)
treead2a3d66101c6932c683bf413eb20885b2eb6539 /test/example/c-api-unused-mem.cpp
parentf7b3289ed430bd86c083410539a92e12632c554c (diff)
downloadbinaryen-8ea6e13fe18b69419411edfd979ce15302820da2.tar.gz
binaryen-8ea6e13fe18b69419411edfd979ce15302820da2.tar.bz2
binaryen-8ea6e13fe18b69419411edfd979ce15302820da2.zip
Use stdbool boolean instead of int to represent boolean values in C API (#3670)
Fixes #3664
Diffstat (limited to 'test/example/c-api-unused-mem.cpp')
-rw-r--r--test/example/c-api-unused-mem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/example/c-api-unused-mem.cpp b/test/example/c-api-unused-mem.cpp
index 17e8004eb..c540d15c1 100644
--- a/test/example/c-api-unused-mem.cpp
+++ b/test/example/c-api-unused-mem.cpp
@@ -17,7 +17,7 @@ int main() {
BinaryenModuleAutoDrop(the_module);
{
const char* segments[] = { 0 };
- int8_t segmentPassive[] = { 0 };
+ bool segmentPassive[] = { false };
BinaryenExpressionRef segmentOffsets[] = { 0 };
BinaryenIndex segmentSizes[] = { 0 };
BinaryenSetMemory(the_module, 256, 256, "memory", segments, segmentPassive, segmentOffsets, segmentSizes, 0, 0);
@@ -60,7 +60,7 @@ int main() {
BinaryenAddFunctionExport(the_module, "main", "main");
{
const char* segments[] = { 0 };
- int8_t segmentPassive[] = { 0 };
+ bool segmentPassive[] = { false };
BinaryenExpressionRef segmentOffsets[] = { 0 };
BinaryenIndex segmentSizes[] = { 0 };
BinaryenSetMemory(the_module, 1024, 1024, NULL, segments, segmentPassive, segmentOffsets, segmentSizes, 0, 0);