[PD-dev] pointer cast fix

IOhannes m zmölnig zmoelnig at iem.at
Fri Jan 21 20:42:01 CET 2022


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




More information about the Pd-dev mailing list