]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
modula2: libm2iso/RTco.cc tidyup use bool instead of int
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 5 Jan 2024 16:39:46 +0000 (16:39 +0000)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 5 Jan 2024 16:39:46 +0000 (16:39 +0000)
A missing bool/int detected in the global variable initialized.
The majority of ints were replaced by bool but this one was missed.

libgm2/ChangeLog:

* libm2iso/RTco.cc (initialized): Use bool instead of int.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
libgm2/libm2iso/RTco.cc

index 17e8010a496a31c0d0091e2c071cd4edb0517229..190c897c0c06e40bff425226f3ce212db26279c7 100644 (file)
@@ -96,7 +96,7 @@ static threadSem **semArray = NULL;
 /* These are used to lock the above module data structures.  */
 static __gthread_mutex_t lock;  /* This is the only mutex for
                                   the whole module.  */
-static int initialized = false;
+static bool initialized = false;
 
 extern "C" int EXPORT(init) (void);