@@ -231,7 +231,7 @@ tre_tnfa_run_parallel(const tre_tnfa_t *tnfa, const void *string,
231231 pbytes = sizeof (* reach_pos ) * tnfa -> num_states ;
232232 xbytes = sizeof (regoff_t ) * num_tags ;
233233 total_bytes =
234- (sizeof (long ) - 1 ) * 4 /* for alignment paddings */
234+ (sizeof (size_t ) - 1 ) * 4 /* for alignment paddings */
235235 + (rbytes + xbytes * tnfa -> num_states ) * 2 + tbytes + pbytes ;
236236
237237 /* Allocate the memory. */
@@ -242,16 +242,16 @@ tre_tnfa_run_parallel(const tre_tnfa_t *tnfa, const void *string,
242242 /* Get the various pointers within tmp_buf (properly aligned). */
243243 tmp_tags = (void * )buf ;
244244 tmp_buf = buf + tbytes ;
245- tmp_buf += ALIGN (tmp_buf , long );
245+ tmp_buf += ALIGN (tmp_buf , size_t );
246246 reach_next = (void * )tmp_buf ;
247247 tmp_buf += rbytes ;
248- tmp_buf += ALIGN (tmp_buf , long );
248+ tmp_buf += ALIGN (tmp_buf , size_t );
249249 reach = (void * )tmp_buf ;
250250 tmp_buf += rbytes ;
251- tmp_buf += ALIGN (tmp_buf , long );
251+ tmp_buf += ALIGN (tmp_buf , size_t );
252252 reach_pos = (void * )tmp_buf ;
253253 tmp_buf += pbytes ;
254- tmp_buf += ALIGN (tmp_buf , long );
254+ tmp_buf += ALIGN (tmp_buf , size_t );
255255 for (i = 0 ; i < tnfa -> num_states ; i ++ )
256256 {
257257 reach [i ].tags = (void * )tmp_buf ;
0 commit comments