diff example/Prime/spe/PrintTask.cc @ 1243:9df036b11eae draft

fix printtask
author Daichi Toma <amothic@gmail.com>
date Tue, 01 Nov 2011 19:23:11 +0900
parents 247da1f5e625
children d2f70da2aa19
line wrap: on
line diff
--- a/example/Prime/spe/PrintTask.cc	Tue Nov 01 19:01:13 2011 +0900
+++ b/example/Prime/spe/PrintTask.cc	Tue Nov 01 19:23:11 2011 +0900
@@ -17,6 +17,9 @@
 	long length = (long)smanager->get_param(0);			/* 出力する範囲 */
 	bool *input = (bool*)smanager->get_input(rbuf, 0);	/* 出力する配列 */
 
+	input[0] = false;
+	input[1] = false;
+
 	/* 素数の判定結果が1ならば出力する */
 	for (long i = 0; i < length; i++) {
 		if ( input[i] == true ) {