回答編集履歴

1

まちがってたので修正

2019/08/27 05:02

投稿

y_waiwai
y_waiwai

スコア87774

test CHANGED
@@ -10,9 +10,9 @@
10
10
 
11
11
  {
12
12
 
13
- bf[0]=htohex[dat&0xf];
13
+ bf[0]=htohex[(dat>>4)&0xf];
14
14
 
15
- bf[1]=htohex[(dat>>4)&0xf];
15
+ bf[1]=htohex[dat&0xf];
16
16
 
17
17
  bf[2]='\0';
18
18