← Back to team overview

kicad-developers team mailing list archive

[PATCH 1/8] Make locale init counter unsigned

 

This counts initializations of the locale subsystem, there is no real good
reason why this should be a signed variable.
---
 common/common.cpp | 2 +-
 include/common.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/common.cpp b/common/common.cpp
index edb5282..ae1d8e7 100644
--- a/common/common.cpp
+++ b/common/common.cpp
@@ -70,7 +70,7 @@ EDA_COLOR_T    g_GhostColor;
 bool g_DisableFloatingPointLocalNotation = false;
 
 
-int LOCALE_IO::C_count;
+unsigned int LOCALE_IO::C_count;
 
 
 void SetLocaleTo_C_standard()
diff --git a/include/common.h b/include/common.h
index 169c0c2..da104ae 100644
--- a/include/common.h
+++ b/include/common.h
@@ -244,7 +244,7 @@ public:
     }
 
 private:
-    static int  C_count;    // allow for nesting of LOCALE_IO instantiations
+    static unsigned int  C_count;    // allow for nesting of LOCALE_IO instantiations
 };
 
 

Follow ups

References