[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Defining GLintptr and GLsizeiptr as long long is incompatible with GLES2 on 32-bit systems



C/C++ "long" as 64 is common on Linux, see the LLP64 model here:

http://en.wikipedia.org/wiki/64-bit_computing#64-bit_data_models

C/C++ "long" is 32 on Windows (an LLP64 model.)  This change is the
main reason why people should not use "long" as a direct type in their
C++ programs, as it is intrinsically not portable or at least
unnecessarily problematic.  Rather use uint64_t and uint32_t when
possible.

Best regards,
-ben

On Tue, Sep 3, 2013 at 9:21 AM, Kirill Prazdnikov
<kirill.prazdnikov@jetbrains.com> wrote:
>
> On 9/2/2013 2:56 PM, Olli Etuaho wrote:
>>
>> signed long int is typically 32-bit on 32-bit platforms, and typically
>> 64-bit on 64-bit platforms
>
>
> Which platform (compiler) has 64-bit "signed long int" in C++ ?
> I have never seen any ...
>
> Thanks
>   -Kirill
>
> -----------------------------------------------------------
> You are currently subscribed to public_webgl@khronos.org.
> To unsubscribe, send an email to majordomo@khronos.org with
> the following command in the body of your email:
> unsubscribe public_webgl
> -----------------------------------------------------------
>



-- 
Best regards,
Ben Houston
Voice: 613-762-4113 Skype: ben.exocortex Twitter: @exocortexcom
http://Exocortex.com - Passionate CG Software Professionals.

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------