OSDN Git Service
(root)
/
hengband
/
hengband.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
512aae0
)
コマンド文字を保持する変数は内部コマンドの253や、254を保持する必要があるので、
author
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 6 Feb 2002 23:53:29 +0000
(23:53 +0000)
committer
mogami
<mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 6 Feb 2002 23:53:29 +0000
(23:53 +0000)
char cmd; から、 int cmd; に戻した。厳密には今までは unsigned char cmd; だったが、
潜在的なバグやワーニングの可能性を極力無くすためには int の方がいいと判断。
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index
4a99670
..
fca1a6a
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-4050,7
+4050,11
@@
void request_command(int shopping)
{
int i;
- char cmd;
+ /*
+ * Since the 'cmd' must hold internal command key 253 and 254,
+ * it need to be int or byte. Not to be char.
+ */
+ int cmd;
int mode;
@@
-4094,7
+4098,7
@@
void request_command(int shopping)
msg_print(NULL);
/* Use auto-command */
- cmd =
(unsigned char)
command_new;
+ cmd = command_new;
/* Forget it */
command_new = 0;