Mercurial > hg > Members > kono > Cerium
changeset 601:8782cc4171b7
linda work on mac osx
author | kazz@e065701.local |
---|---|
date | Fri, 06 Nov 2009 18:34:12 +0900 |
parents | b480cec5af53 |
children | 1733f3cbfa28 541ee8de2dca |
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 {