[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sr #107538] Patch: "warning: cast to pointer from integer of different
From: |
Jeffrey Walton |
Subject: |
[sr #107538] Patch: "warning: cast to pointer from integer of different size" |
Date: |
Fri, 26 Nov 2010 01:55:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12 |
Follow-up Comment #3, sr #107538 (project gnutls):
> Re pointer-from-integer: why ssize_t? Wouldn't 'unsigned long'
> be better? Otherwise I agree with this patch.
size_t/ssize_t seemed like the most direct path to a machine's word size.
> ... because [an assert] would crash an application (instead we should
return errors)
I'll get a separate thread started on mail dev. But I agree about crash
versus failure.
> I don't think there is an error to end up in the default case.
OK. I take interest in "empty" default cases, and like to know when they are
encountered.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/support/?107538>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/