[Scipy-svn] r5403 - trunk/scipy/weave/scxx

scipy-svn@scip... scipy-svn@scip...
Thu Jan 8 09:26:04 CST 2009


Author: stefan
Date: 2009-01-08 09:25:50 -0600 (Thu, 08 Jan 2009)
New Revision: 5403

Modified:
   trunk/scipy/weave/scxx/sequence.h
Log:
Use static strings to avoid warnings under gcc 4.3.

Modified: trunk/scipy/weave/scxx/sequence.h
===================================================================
--- trunk/scipy/weave/scxx/sequence.h	2009-01-08 15:13:46 UTC (rev 5402)
+++ trunk/scipy/weave/scxx/sequence.h	2009-01-08 15:25:50 UTC (rev 5403)
@@ -90,11 +90,11 @@
     object val = value;
     return count(val);
   };
-  int count(char* value) const {
+  int count(const char* value) const {
     object val = value;
     return count(val);
   };
-  int count(std::string& value) const {
+  int count(const std::string& value) const {
     object val = value.c_str();
     return count(val);
   };



More information about the Scipy-svn mailing list