bugfindutils - Bugs: bug #19970, Cannot cast from pointer to bool...

 
 

bug #19970: Cannot cast from pointer to bool using gnulib's <stdbool.h>

Submitter:  James Youngman <jay>
Submitted:  Sat 26 May 2007 11:07:43 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Nelson H. F. Beebe Open/Closed:  Closed
Release:  4.3.6 Fixed Release:  4.3.7
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 26 May 2007 11:07:43 AM UTC, original submission:  

Th comments in the gnulib header say:

Limitations of this substitute, when used in a C89 environment:

- In C99, casts and automatic conversions to '_Bool' or 'bool' are
performed in such a way that every nonzero value gets converted
to 'true', and zero gets converted to 'false'.  This doesn't work
with this substitute.  With this substitute, only the values 0 and  1 give the expected result when converted to _Bool' or 'bool'.


There are a couple of places in parser.c where we do this.  That means that findutils does nto compile in such environments.

James Youngman <jay>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-06-09 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.7
    2007-05-26 jay StatusNone Fixed
        Assigned toNone jay
        ReleaseNone 4.3.6

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code