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

Commit b1910da

Browse files
committed
Disassembler: fix for 64-bit cell files; fixes issue #66.
1 parent eeca793 commit b1910da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/pawndisasm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/* Pawn disassembler - crude, but hopefully useful
1+
/* Pawn disassembler - crude, but hopefully useful
22
*
3-
* Copyright (c) CompuPhase, 2007-2020
3+
* Copyright (c) CompuPhase, 2007-2023
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
* use this file except in compliance with the License. You may obtain a copy
@@ -596,7 +596,7 @@ int main(int argc,char *argv[])
596596
pc_cellsize=4;
597597
cellmask=0xffffffffLU;
598598
} else if (amxhdr.magic==AMX_MAGIC_64) {
599-
pc_cellsize=4;
599+
pc_cellsize=8;
600600
cellmask=(ucell)0xffffffffffffffffLL; /* suffix "LLU" is unsupported on Microsoft Visual C/C++ */
601601
} else {
602602
printf("Not a valid AMX file\n");

0 commit comments

Comments
 (0)