for installed header files, add comment saying where they came from
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
(pos+1)*sizeof(t) bytes are initialized.
|
||||
#endif
|
||||
|
||||
void* array_get(array* x,uint64 membersize,int64 pos) {
|
||||
void* array_get(const array* const x,uint64 membersize,int64 pos) {
|
||||
uint64 wanted;
|
||||
if (__unlikely(pos+1<1)) return 0;
|
||||
if (__unlikely(!umult64(membersize,pos,&wanted))) return 0;
|
||||
|
||||
if (__unlikely((int64)wanted >= x->allocated || wanted>=x->initialized)) return 0;
|
||||
return x->p+pos*membersize;
|
||||
return (void*)(x->p+pos*membersize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user