[Rprotobuf-commits] r428 - pkg/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Nov 7 10:54:02 CET 2011
Author: romain
Date: 2011-11-07 10:54:02 +0100 (Mon, 07 Nov 2011)
New Revision: 428
Modified:
pkg/src/wrapper_Message.cpp
Log:
int64 related changes
Modified: pkg/src/wrapper_Message.cpp
===================================================================
--- pkg/src/wrapper_Message.cpp 2011-11-07 09:49:44 UTC (rev 427)
+++ pkg/src/wrapper_Message.cpp 2011-11-07 09:54:02 UTC (rev 428)
@@ -994,6 +994,7 @@
case TYPE_SFIXED64:
{
Rcpp::int64::LongVector<int64_t> res(n) ;
+ const GPB::Reflection* ref = message->GetReflection() ;
for( int i=0; i<n; i++){
res.set(i, ref->GetRepeatedInt64( *message, field_desc, index[i] ) ) ;
}
@@ -1002,6 +1003,7 @@
case TYPE_FIXED64:
case TYPE_UINT64:
{
+ const GPB::Reflection* ref = message->GetReflection() ;
Rcpp::int64::LongVector<uint64_t> res(n) ;
for( int i=0; i<n; i++){
res.set(i, ref->GetRepeatedUInt64( *message, field_desc, index[i] ) ) ;
More information about the Rprotobuf-commits
mailing list