From 487da05ecacd1c03c58b27d8ef8bd5fd7f85ac88 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Mon, 9 Jan 2017 10:58:24 +0000 Subject: [PATCH] Fix for https://github.com/Microsoft/pxt/issues/1057 --- libs/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/core.cpp b/libs/core/core.cpp index dffb6b2c..eb30e67d 100644 --- a/libs/core/core.cpp +++ b/libs/core/core.cpp @@ -76,7 +76,7 @@ namespace Boolean_ { } //% - bool bang(bool v) { return !v; } + bool bang(int v) { return v == 0; } } namespace Number_ {