[opengtl-commits] [386] init the count field of pixel to 0

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 386
Author:   cyrille
Date:     2008-09-12 01:11:34 +0200 (Fri, 12 Sep 2008)

Log Message:
-----------
init the count field of pixel to 0

Modified Paths:
--------------
    trunk/OpenGTL/OpenShiva/OpenShiva/CodeGenerator_p.cpp


Modified: trunk/OpenGTL/OpenShiva/OpenShiva/CodeGenerator_p.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/CodeGenerator_p.cpp	2008-09-11 21:50:26 UTC (rev 385)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/CodeGenerator_p.cpp	2008-09-11 23:11:34 UTC (rev 386)
@@ -609,6 +609,7 @@
     llvm::Value* y_i = GTLCore::CodeGenerator::createRound( currentBlock, y_f );
   //    pixelX* px = new pixelX;
     llvm::Value* px_var = new llvm::MallocInst( _pixelType->d->type(), GTLCore::CodeGenerator::integerToConstant( 1 ), "", currentBlock );
+    GTLCore::CodeGenerator::setCountFieldOf( currentBlock, px_var, GTLCore::CodeGenerator::integerToConstant( 0 ) );
   //    memToPixel( image, px, image_wrap_data(self, x, y ) );
     currentBlock = memToPixel( generationContext, currentBlock,
                                callImageWrapData( generationContext, currentBlock, _imageType, arg_self, x_i, y_i ),


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/