projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Resolve GitLab issue #3. Applies MISRA and CERT guidelines.
[open-adventure.git]
/
dungeon.c
diff --git
a/dungeon.c
b/dungeon.c
index a39e41394560b1d8f24916173a22a4e04b6a7166..e92dcc98039e55a5ecf8a3f5aadf8e9df8877670 100644
(file)
--- a/
dungeon.c
+++ b/
dungeon.c
@@
-54,7
+54,7
@@
long ACTSPK[VRBSIZ + 1];
static bool is_set(long var, long position)
{
static bool is_set(long var, long position)
{
- long mask = 1
l
<< position;
+ long mask = 1
L
<< position;
bool result = (var & mask) == mask;
return (result);
}
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);
while ((loc = GETNUM(NULL)) != 0) {
if (is_set(COND[loc], K))
BUG(LOCATION_HAS_CONDITION_BIT_BEING_SET_TWICE);
- COND[loc] = COND[loc] + (1
l
<< K);
+ COND[loc] = COND[loc] + (1
L
<< K);
}
}
}
}
}
}