Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit fb37fa7

Browse files
committed
Fixed issue #59.
AMX_FLAG_COMPACT is a remnant of version 3.3; it was removed in version 4.0.
1 parent e204c94 commit fb37fa7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

amx/amx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* License for the specific language governing permissions and limitations
1515
* under the License.
1616
*
17-
* Version: $Id: amx.c 6964 2023-07-19 19:08:42Z thiadmer $
17+
* Version: $Id: amx.c 6965 2023-07-20 15:44:35Z thiadmer $
1818
*/
1919

2020
#define WIN32_LEAN_AND_MEAN
@@ -1178,11 +1178,11 @@ int AMXAPI amx_Init(AMX *amx,void *program)
11781178
return AMX_ERR_FORMAT;
11791179
assert(hdr->hea == hdr->size);
11801180
#if BYTE_ORDER==BIG_ENDIAN
1181-
if ((hdr->flags & AMX_FLAG_COMPACT)==0) {
1181+
{
11821182
ucell *code=(ucell *)((unsigned char *)program+(int)hdr->cod);
11831183
while (code<(ucell *)((unsigned char *)program+(int)hdr->hea))
11841184
amx_SwapCell(code++);
1185-
} /* if */
1185+
}
11861186
#endif
11871187

11881188
amx->base=(unsigned char *)program;

0 commit comments

Comments
 (0)