Revision: 52599
          http://brlcad.svn.sourceforge.net/brlcad/?rev=52599&view=rev
Author:   brlcad
Date:     2012-10-01 02:19:59 +0000 (Mon, 01 Oct 2012)
Log Message:
-----------
defaulting to zero truncates, so do what std::string() does and default to max 
size_t

Modified Paths:
--------------
    brlcad/trunk/src/other/step/src/cldai/sdaiString.cc
    brlcad/trunk/src/other/step/src/cldai/sdaiString.h

Modified: brlcad/trunk/src/other/step/src/cldai/sdaiString.cc
===================================================================
--- brlcad/trunk/src/other/step/src/cldai/sdaiString.cc 2012-09-28 21:49:48 UTC 
(rev 52598)
+++ brlcad/trunk/src/other/step/src/cldai/sdaiString.cc 2012-10-01 02:19:59 UTC 
(rev 52599)
@@ -13,7 +13,7 @@
 #include <sstream>
 #include "scl_memmgr.h"
 
-SDAI_String::SDAI_String( const char * str, int max ) {
+SDAI_String::SDAI_String( const char * str, size_t max ) {
     content = std::string( str, max );
 }
 

Modified: brlcad/trunk/src/other/step/src/cldai/sdaiString.h
===================================================================
--- brlcad/trunk/src/other/step/src/cldai/sdaiString.h  2012-09-28 21:49:48 UTC 
(rev 52598)
+++ brlcad/trunk/src/other/step/src/cldai/sdaiString.h  2012-10-01 02:19:59 UTC 
(rev 52599)
@@ -19,7 +19,7 @@
     public:
 
         //constructor(s) & destructor
-        SDAI_String( const char * str = 0, int max = 0 );
+        SDAI_String( const char * str = 0, size_t max = SIZE_MAX );
         SDAI_String( const std::string & s );
         SDAI_String( const SDAI_String & s );
         ~SDAI_String( void );

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to