From e0597d49857e9fa349290b2176176b9665d4ada3 Mon Sep 17 00:00:00 2001
From: Ploc <ploc@garoche.net>
Date: Wed, 1 Feb 2017 18:53:40 +0100
Subject: [PATCH] _Bool are unsigned integer. The cast as a _Bool is delayed
 until the end of the function

---
 include/io_frontend.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/io_frontend.c b/include/io_frontend.c
index 9c65e592..3cd2b9be 100644
--- a/include/io_frontend.c
+++ b/include/io_frontend.c
@@ -8,7 +8,7 @@ int ISATTY;
 /* Standard Input procedures **************/
 _Bool _get_bool(FILE* file, char* n){
    char b[512];
-   _Bool r = 0;
+   int r = 0;
    int s = 1;
    char c;
    do {
@@ -23,7 +23,7 @@ _Bool _get_bool(FILE* file, char* n){
       if((c == '1') || (c == 't') || (c == 'T')) r = 1;
    } while((s != 1) || (r == -1));
    fprintf(file, "%i\n",r);
-   return r;
+   return (_Bool)r;
 }
 
 int _get_int(FILE* file, char* n){
-- 
GitLab