[PATCH gpgme] Fix error handling in _gpgme_parse_status().

Werner Koch wk at gnupg.org
Thu Nov 15 11:09:04 CET 2012


On Thu, 15 Nov 2012 09:27, xi.wang at gmail.com said:

> Even though _gpgme_parse_status() returns -1 on error, the return type
> gpgme_status_code_t is unsigned, and thus (r >= 0) is always true.

How do you come to the impression that gpgme_status_code_t is an
unsigned integer?  It is an enumeration and those are compatible with a
(signed) integer.  Although some systems use different sizes for the
enumeration integer type, I have never seen a claim that it is unsigned.

What is the problem you want solve?


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list