Pelles C forum

Pelles C => Bug reports => Topic started by: Vortex on April 06, 2025, 01:07:48 PM

Title: Issue with .IF conditionals
Post by: Vortex on April 06, 2025, 01:07:48 PM
Hello,

Some .IF conditionals are reporting the following error message :

E:\PellesC\sample\a5>\PellesC\bin\poasm /AAMD64 GdipCreateBmpFromFile.asm
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(93): error: Wrong type for condition operand 1.
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(114): error: Wrong type for condition operand 1.
E:\PellesC\sample\a5\GdipCreateBmpFromFile.asm(131): error: Wrong type for condition operand 1.

The .IF statements :

   .if uMsg == WM_CREATE
 .
 .

    .elseif uMsg == WM_PAINT

    .elseif uMsg == WM_DESTROY

Error reported by Poasm V13.00.1
Title: Re: Issue with .IF conditionals
Post by: Vortex on April 07, 2025, 09:03:32 PM
Hello,

32-bit code is not affected by the issue. Attached zip file contains a project ( 32-bit ) built with Poasm V13.00.1