- Timestamp:
- May 29, 2007 11:33:13 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/pool_buf.c
r1235 r1316 82 82 { 83 83 struct creation_param param; 84 long align_diff; 84 85 85 86 PJ_ASSERT_RETURN(buf && size, NULL); … … 89 90 return NULL; 90 91 is_initialized = 1; 92 } 93 94 /* Check and align buffer */ 95 align_diff = (long)buf; 96 if (align_diff & (PJ_POOL_ALIGNMENT-1)) { 97 align_diff &= (PJ_POOL_ALIGNMENT-1); 98 buf = (void*) (((char*)buf) + align_diff); 99 size -= align_diff; 91 100 } 92 101
Note: See TracChangeset
for help on using the changeset viewer.