[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lzip-bug] Parameter is not bool (clzip)

From: Antonio Diaz Diaz
Subject: Re: [Lzip-bug] Parameter is not bool (clzip)
Date: Sun, 06 Nov 2022 20:05:04 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv: Gecko/20110420 SeaMonkey/2.0.14

Stefan A. Haubenthal wrote:
vc +kick13  -Ivbcc:PosixLib/include -DPROGVERSION="1.13" -c -o main.o main.c
          if( !open_outstream( true, in_statsp ) )
error 39 in line 702 of "main.c": invalid types for assignment
1 error found!

It seems that your report is about clzip.

Note that 'in_statsp' is a pointer, and according to the C99 standard: Boolean type
1 When any scalar value is converted to _Bool, the result is 0 if the value compares equal to 0; otherwise, the result is 1.


  6.2.5 Types
  21 Arithmetic types and pointer types are collectively called scalar types.

Therefore, using 'in_statsp' as a bool argument is valid.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]