summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c46b82f)
raw | patch | inline | side by side (parent: c46b82f)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Wed, 11 Mar 2020 15:54:08 +0000 (18:54 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Wed, 11 Mar 2020 15:54:08 +0000 (18:54 +0300) |
src/memory.c | patch | blob | history |
diff --git a/src/memory.c b/src/memory.c
index af93fa6f7b00a2af6d1a9d5bacd6d0a028e3ee00..d3c5e8ccf8364e55b875f59fa472ab986d460fb4 100644 (file)
--- a/src/memory.c
+++ b/src/memory.c
}
int M_locked (int h) {
- h&=-1-0x8000;
- return (h != -1) && (h != 0xFFFF) && (resl[h] != 0);
+ return (h != -1) && (h != 0xFFFF) && (resl[h & (-1 - 0x8000)] != 0);
}
int M_was_locked (int h) {
- h&=-1-0x8000;
- return (h != -1) && (h != 0xFFFF) && (resp[h] != NULL);
+ return (h != -1) && (h != 0xFFFF) && (resp[h & (-1 - 0x8000)] != NULL);
}