X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=dungeon.c;h=e92dcc98039e55a5ecf8a3f5aadf8e9df8877670;hb=82f162dc3246f17ee08579ee5aa755937fd4bf09;hp=a39e41394560b1d8f24916173a22a4e04b6a7166;hpb=67ed99b29cfe5c32b3db72091de3fb174195e032;p=open-adventure.git diff --git a/dungeon.c b/dungeon.c index a39e413..e92dcc9 100644 --- a/dungeon.c +++ b/dungeon.c @@ -54,7 +54,7 @@ long ACTSPK[VRBSIZ + 1]; static bool is_set(long var, long position) { - long mask = 1l << position; + long mask = 1L << position; bool result = (var & mask) == mask; return (result); } @@ -308,7 +308,7 @@ static void read_conditions(FILE* database) while ((loc = GETNUM(NULL)) != 0) { if (is_set(COND[loc], K)) BUG(LOCATION_HAS_CONDITION_BIT_BEING_SET_TWICE); - COND[loc] = COND[loc] + (1l << K); + COND[loc] = COND[loc] + (1L << K); } } }