[Nasm-bugs] [Bug 3392409] New: 2.13.xx: idata_bytes() and resv_bytes() don't match their prototypes

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Wed May 24 22:55:40 PDT 2017


https://bugzilla.nasm.us/show_bug.cgi?id=3392409

            Bug ID: 3392409
           Summary: 2.13.xx: idata_bytes() and resv_bytes() don't match
                    their prototypes
           Product: NASM
           Version: 2.13.xx
          Hardware: All
                OS: All
            Status: OPEN
          Severity: normal
          Priority: Medium
         Component: Assembler
          Assignee: nobody at nasm.us
          Reporter: sezeroz at gmail.com
                CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
     Obtained from: Build from git using other Makefile

idata_bytes() and resv_bytes() don't match their prototypes in common.c
which leads to a build error with watcom.  The following trivial patch
for 2.13.xx fixes it.

diff --git a/common/common.c b/common/common.c
index 5a54620..fb3e890 100644
--- a/common/common.c
+++ b/common/common.c
@@ -66,7 +66,7 @@ const char *prefix_name(int token)
 /*
  * initialized data bytes length from opcode
  */
-int idata_bytes(int opcode)
+int idata_bytes(enum opcode opcode)
 {
     switch (opcode) {
     case I_DB:
@@ -95,7 +95,7 @@ int idata_bytes(int opcode)
 /*
  * Uninitialized data bytes length from opcode
  */
-int resv_bytes(int opcode)
+int resv_bytes(enum opcode opcode)
 {
     switch (opcode) {
     case I_RESB:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list