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

 
 

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

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.

 

(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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    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.5