[PD-dev] pointer cast fix

Dan Wilcox danomatika at gmail.com
Fri Jan 21 20:53:25 CET 2022


Ah yes, I remember that issue now. I will leave the warnings in place for now.

> On Jan 21, 2022, at 8:42 PM, IOhannes m zmölnig <zmoelnig at iem.at> wrote:
> 
> Am 21. Jänner 2022 20:31:57 MEZ schrieb Dan Wilcox <danomatika at gmail.com>:
>> 
>> Would it be safe to do a cast to (unsigned long)?
>> 
>> sprintf(buf, ".x%lx", (unsigned long)x);
> 
> no, because on LLP64 systems, an 'unsigned long' is only 32bit.
> 
> there relevant GitHub issue is <https://github.com/pure-data/pure-data/issues/1474>
> 
> 
> mfg.sfg.jfd
> IOhannes
> 

--------
Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20220121/342b39d7/attachment-0001.htm>


More information about the Pd-dev mailing list