From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 5 Jan 2016 15:14:52 -0800 To: 9fans@9fans.net Message-ID: <64adf582a0a61a15451ac1ddf0318598@lilly.quanstro.net> In-Reply-To: <9d6cbe92e63cdd91abe4227997ecb0b7@felloff.net> References: <9d6cbe92e63cdd91abe4227997ecb0b7@felloff.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] subtracting pointers on amd64 6c Topicbox-Message-UUID: 7e9e245a-ead9-11e9-9d60-3106f5b1d025 On Tue Jan 5 14:34:52 PST 2016, cinap_lenrek@felloff.net wrote: > > there are usable ANSI formats for the difference and sizeof types. > > so one would write %td instead of %ld for ptrdiff type? that seems > easy. yup. > i'm not so sure how usize/ssize would work. %zud and %zd? or would > the z flag imply unsigned? would the return type of sizeof() also > become usize? yes. (but ssize doesn't exist yet.) - erik