質問編集履歴
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,13 +14,11 @@
|
|
14
14
|
|
15
15
|
unsigned char* value_ptr = reinterpret_cast<unsigned char*>(&value);
|
16
16
|
|
17
|
-
int size = sizeof(float);
|
18
|
-
|
19
17
|
|
20
18
|
|
21
|
-
//
|
19
|
+
// char配列に格納
|
22
20
|
|
23
|
-
for(int i = 0; i < size; i++)
|
21
|
+
for(int i = 0; i < sizeof(float); i++)
|
24
22
|
|
25
23
|
cmd[i] = value_ptr[i];
|
26
24
|
|