[Rprotobuf-commits] r389 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Sep 11 11:17:43 CEST 2010


Author: romain
Date: 2010-09-11 11:17:43 +0200 (Sat, 11 Sep 2010)
New Revision: 389

Modified:
   pkg/src/mutators.cpp
Log:
using std::vector instead of int[]

Modified: pkg/src/mutators.cpp
===================================================================
--- pkg/src/mutators.cpp	2010-09-11 09:15:29 UTC (rev 388)
+++ pkg/src/mutators.cpp	2010-09-11 09:17:43 UTC (rev 389)
@@ -212,7 +212,7 @@
     	case RAWSXP:
     		{
     			int nenums = enum_desc->value_count() ;
-    			int possibles [ nenums ] ;
+    			std::vector<int> possibles( nenums ) ;
     			for( int i=0; i< nenums; i++){
     				possibles[i] = enum_desc->value(i)->number(); 
     			}



More information about the Rprotobuf-commits mailing list