summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alBuffer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-18 14:46:33 -0700
committerChris Robinson <[email protected]>2010-03-18 14:46:33 -0700
commit2355d6a4a043a82ad40eae193893beb4bcd2efa0 (patch)
tree268e4254097b23e3a59a2cea71088645530c6c75 /OpenAL32/alBuffer.c
parente1965fe7d90a2dee4f60907500947d411d39dd49 (diff)
Use ptrdiff types for databuffer offset/length handling
Should improve addressing for non-32-bit systems
Diffstat (limited to 'OpenAL32/alBuffer.c')
-rw-r--r--OpenAL32/alBuffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alBuffer.c b/OpenAL32/alBuffer.c
index b7650ec2..cd1886df 100644
--- a/OpenAL32/alBuffer.c
+++ b/OpenAL32/alBuffer.c
@@ -276,7 +276,7 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d
{
if(Context->SampleSource)
{
- ALuint offset;
+ ALintptrEXT offset;
if(Context->SampleSource->state == MAPPED)
{
@@ -285,7 +285,7 @@ ALAPI ALvoid ALAPIENTRY alBufferData(ALuint buffer,ALenum format,const ALvoid *d
return;
}
- offset = (ALuint)data;
+ offset = (ALintptrEXT)data;
data = Context->SampleSource->data + offset;
}
@@ -525,7 +525,7 @@ ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *d
{
if(Context->SampleSource)
{
- ALuint offset;
+ ALintptrEXT offset;
if(Context->SampleSource->state == MAPPED)
{
@@ -534,7 +534,7 @@ ALvoid ALAPIENTRY alBufferSubDataEXT(ALuint buffer,ALenum format,const ALvoid *d
return;
}
- offset = (ALuint)data;
+ offset = (ALintptrEXT)data;
data = Context->SampleSource->data + offset;
}