Index: trunk/Mars/mcore/nova.h
===================================================================
--- trunk/Mars/mcore/nova.h	(revision 18888)
+++ trunk/Mars/mcore/nova.h	(revision 18926)
@@ -3,5 +3,7 @@
 
 #include <map>
+#include <cmath>
 #include <string>
+#include <limits>
 #include <algorithm>
 
@@ -45,6 +47,6 @@
             };
 
-            for (auto &c: obs)
-                c = toupper(c);
+            for (auto it=obs.begin(); it!=obs.end(); it++)
+                *it = toupper(*it);
 
             const auto it = lut.find(obs);
