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
Priority:  5 - 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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

    History

    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.16.
    Corresponding source code