changeset 601:50c877027e0f draft

linda work on mac osx
author kazz@e065701.local
date Fri, 06 Nov 2009 18:34:12 +0900
parents 5cf8b30462c9
children 92b0d490e839 4d704ae84eaa
files Renderer/Test/dynamic_create.cc Renderer/Test/send_linda.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Test/dynamic_create.cc	Fri Nov 06 18:22:15 2009 +0900
+++ b/Renderer/Test/dynamic_create.cc	Fri Nov 06 18:34:12 2009 +0900
@@ -145,7 +145,7 @@
     callback_arg *carg = (callback_arg *)arg;
 	
     // 最初の4byteデータは使わない
-    data = taple+LINDA_HEADER_SIZE;
+    data = taple + LINDA_HEADER_SIZE;
     // clientのSerialIDを取得
     serial_id = ntohl(*(int *)data);
 	printf("serial id = %d\n", serial_id);
--- a/Renderer/Test/send_linda.cc	Fri Nov 06 18:22:15 2009 +0900
+++ b/Renderer/Test/send_linda.cc	Fri Nov 06 18:34:12 2009 +0900
@@ -27,8 +27,8 @@
 	int i;
 	
 	for (i = 0; i < 3; i ++) {
-		send_data[i]   = node->xyz[i];
-		send_data[i+3] = node->angle[i];
+		send_data[i]   = htonl(node->xyz[i]);
+		send_data[i+3] = htonl(node->angle[i]);
 	}
     seq = psx_in(fd, tapleid);
 	do {