Re: [PATCH] support ptrdiff_t if it has the same storage size as int, but does not alias it

Neil <[email protected]> Sun, 5 Oct 2025 02:49:29 -0700 (PDT)
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
Robin Haberkorn:
 

What if we used int64_t consistently instead of ptrdiff_t? 
Sci::Position would be 64-bit even on 32-bit platforms. 
I guess this wouldn't be tolerable?


That would be excessive.

Maybe invert the conditions and prioritise ptrdiff_t before int, then 
avoiding int with added compile time tests where there are currently only 
runtime checks of largeDocument.

Neil

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/888a37ee-193c-47a0-a387-04b6f23de4c4n%40googlegroups.com.