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

"'Robin Haberkorn' via scintilla-interest" <[email protected]> Wed, 01 Oct 2025 23:11:47 +0000
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
> This produces a large number of warnings in RunStyles.cxx from MSVC
> 2022 17.14.122 for the x86 target.
>
> 1>G:\u\hg\scintilla\src\RunStyles.cxx(51,22): warning C4244:
> 'argument': conversion from 'DISTANCE' to 'ptrdiff_t', possible loss
> of data
> 1>G:\u\hg\scintilla\src\RunStyles.cxx(51,22): warning C4244:         with
> 1>G:\u\hg\scintilla\src\RunStyles.cxx(51,22): warning C4244:         [
> 1>G:\u\hg\scintilla\src\RunStyles.cxx(51,22): warning C4244:
>   DISTANCE=__int64
> 1>G:\u\hg\scintilla\src\RunStyles.cxx(51,22): warning C4244:         ]
> 1>    G:\u\hg\scintilla\src\RunStyles.cxx(51,22):
> 1>    the template instantiation context (the oldest one first) is
> 1>        G:\u\hg\scintilla\src\RunStyles.cxx(327,62):
> 1>        see reference to class template instantiation
> 'Scintilla::Internal::RunStyles<__int64,int>' being compiled
> 1>        G:\u\hg\scintilla\src\RunStyles.cxx(44,66):
> 1>        while compiling class template member function 'DISTANCE
> Scintilla::Internal::RunStyles<DISTANCE,int>::SplitRun(DISTANCE)'
> 1>        with
> 1>        [
> 1>            DISTANCE=__int64
> 1>        ]
>
Is the log truncated? Perhaps you could attach it.
Can you find out what's the definition of ptrdiff_t on this platform?

-- 
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/DD7D6FHBH0OY.17ZKM1E7TEMW4%40googlemail.com.