From a9f325874a61585d4f334a8d5ab0c36833edbd8e Mon Sep 17 00:00:00 2001 From: Snaipe Date: Mon, 7 Sep 2015 08:37:28 +0200 Subject: [PATCH] Switched type of 'passed' to bool instead of int --- include/criterion/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/criterion/assert.h b/include/criterion/assert.h index bf9e7fe..539393d 100644 --- a/include/criterion/assert.h +++ b/include/criterion/assert.h @@ -71,7 +71,7 @@ struct criterion_assert_args { struct criterion_assert_args args = { \ CR_EXPAND(CR_VA_SKIP(__VA_ARGS__)) \ }; \ - int passed = !!(CR_EXPAND(CR_GET_CONDITION(__VA_ARGS__))); \ + bool passed = !!(CR_EXPAND(CR_GET_CONDITION(__VA_ARGS__))); \ struct criterion_assert_stats stat; \ CR_ZERO_FILL(stat); \ stat.kind = (Kind); \