From 65ce72729caf8652f2b90b60be044a48850cb6b6 Mon Sep 17 00:00:00 2001 From: Kate Hart Date: Mon, 13 Feb 2017 16:15:12 -0800 Subject: [PATCH] Fixed typo for TEST_PROTECT in readme `setjmp` returns 0 on direct invocation, and non-zero when returned to from `longjmp`. Because `TEST_PROTECT` checks the return value of `setjmp` against 0, checking the return value of `TEST_PROTECT` against 0 is incorrect in the readme. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fef275c..7a84ec6 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Example: main() { - if (TEST_PROTECT() == 0) + if (TEST_PROTECT()) { MyTest(); } -- GitLab