projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f8ed71
)
fix some unintentional math on a void pointer
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2007 16:20:31 +0000
(16:20 +0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2007 16:20:31 +0000
(16:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7157
d7cf8633
-e32d-0410-b094-
e92efae38249
zone.c
patch
|
blob
|
history
diff --git
a/zone.c
b/zone.c
index 3cbde6c9f64e7d68d738c1aa2eabd56e45473307..68958fd06371f8805926218f2b393a569333dac4 100644
(file)
--- a/
zone.c
+++ b/
zone.c
@@
-477,7
+477,7
@@
void *Mem_ExpandableArray_RecordAtIndex(memexpandablearray_t *l, size_t index)
j = index % l->numrecordsperarray;
if (i >= l->numarrays || !l->arrays[i].allocflags[j])
return NULL;
- return (void *)
l->arrays[i].data + j * l->recordsize
;
+ return (void *)
(l->arrays[i].data + j * l->recordsize)
;
}