#236 √ resolved
Pierre Muller

Fix wrong dereferencing.

Reported by Pierre Muller | August 9th, 2011 @ 10:31 AM | in 1.2.0 (closed)

Compiling for mingw64 using "-Wall -Werror"
I found the following mistake, which generates a warning:

$ cat fix-cast-warning.patch diff --git a/modules/objfmts/coff/win64-except.c b/modules/objfmts/coff/win64-except.c
index 32ef919..71d6228 100644
--- a/modules/objfmts/coff/win64-except.c +++ b/modules/objfmts/coff/win64-except.c @@ -296,7 +296,7 @@ win64_uwinfo_bc_tobytes(yasm_bytecode *bc, unsigned char **b ufp,

     YASM_WRITE_8(buf, 1);

 /* Size of prolog */
  • output_value(&info->prolog_size, buf, 1, (unsigned long)(buf-*bufstart),
  • output_value(&info->prolog_size, buf, 1, (unsigned long)(buf-bufstart),
              bc, 1, d);
    

    buf += 1;

The '*' seems to be just an error, no?
Could this patch be applied?

Thanks in advance,

Pierre Muller

thanks in

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket