<div dir="ltr">For (future) reference: <a href="http://msdn.microsoft.com/en-us/library/aa384242(VS.85).aspx">http://msdn.microsoft.com/en-us/library/aa384242(VS.85).aspx</a> and so people can read up on it.<br><br>/Nathan<br>
<br><div class="gmail_quote">On Sun, Jul 27, 2008 at 1:05 PM, Daniel Genrich <span dir="ltr">&lt;<a href="mailto:daniel.genrich@gmx.net">daniel.genrich@gmx.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
In an attempt to create a Windows 64bit version, Blender needs an<br>
official way to deal with the fact that:<br>
<br>
long is 32bit on Win64 (LP64)<br>
long is 64bit on Linux64/Mac64 (LLP64)<br>
<br>
<br>
So the whole long-pointer casting is kind of going wrong on Win64 and<br>
therefore crashing Blender.<br>
<br>
As a proposal I suggest not to use &quot;long&quot; but to introduce the C99/C9X<br>
standard type &quot;uintptr_t&quot; which is already used in many header of the<br>
libs which Blender uses (ffmpeg, python, X264, SDL). This type would<br>
allow instant pointer fiddling and cross plattform compatibility between<br>
LLP64 and LP64 plattforms.<br>
<br>
I would also search-replace the existing &quot;long&quot;s in Blender.<br>
<br>
The goal for this is post-2.47 so we can test it on several plattforms<br>
and harden it a bit (e.g. some older compilers don&#39;t define that<br>
uintptr_t type).<br>
<br>
Any comments / suggestions?<br>
<br>
Greetings<br>
Daniel / Genscher<br>
_______________________________________________<br>
Bf-committers mailing list<br>
<a href="mailto:Bf-committers@blender.org">Bf-committers@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-committers" target="_blank">http://lists.blender.org/mailman/listinfo/bf-committers</a><br>
<br>
</blockquote></div><br></div>