OSDN Git Service

[Refactor] #37353 警告修正。 / Fix warning.
authorDeskull <deskull@users.sourceforge.jp>
Sun, 13 Jan 2019 07:37:27 +0000 (16:37 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sun, 13 Jan 2019 07:37:27 +0000 (16:37 +0900)
src/externs.h
src/spells2.c
src/util.c

index 6b396e7..89fb9cb 100644 (file)
@@ -995,7 +995,7 @@ extern bool cast_wrath_of_the_god(HIT_POINT dam, POSITION rad);
 extern void cast_wonder(DIRECTION dir);
 extern void cast_invoke_spirits(DIRECTION dir);
 extern void cast_shuffle(void);
-extern bool_hack life_stream(bool_hack message, bool_hack virtue);
+extern bool_hack life_stream(bool_hack message, bool_hack virtue_change);
 extern bool_hack heroism(int base);
 extern bool_hack berserk(int base);
 extern bool_hack cure_light_wounds(DICE_NUMBER dice, DICE_SID sides);
index 5f338ee..fc789ac 100644 (file)
@@ -4739,9 +4739,9 @@ void cast_shuffle(void)
        }
 }
 
-bool_hack life_stream(bool_hack message, bool_hack virtue)
+bool_hack life_stream(bool_hack message, bool_hack virtue_change)
 {
-       if(virtue)
+       if(virtue_change)
        {
                chg_virtue(V_VITALITY, 1);
                chg_virtue(V_UNLIFE, -5);
index c93b9c1..92c2888 100644 (file)
@@ -3729,7 +3729,7 @@ bool get_com(cptr prompt, char *command, bool z_escape)
 
        /* Get a key */
        if (get_com_no_macros)
-               *command = inkey_special(FALSE);
+               *command = (char)inkey_special(FALSE);
        else
                *command = inkey();