Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 3057:5ea5a90000d5
fix build by msvc, introduced in r3054
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 28 Aug 2009 11:46:12 +0000 |
parents | 0d253659da12 |
children | 4c90c9129a82 |
comparison
equal
deleted
inserted
replaced
3056:d22afd261e72 | 3057:5ea5a90000d5 |
---|---|
344 } | 344 } |
345 | 345 |
346 size = (size_t) bsize; | 346 size = (size_t) bsize; |
347 | 347 |
348 } else { | 348 } else { |
349 size = ctx->alignment - size; | 349 size = (size_t) ctx->alignment - size; |
350 | 350 |
351 if ((off_t) size > bsize) { | 351 if ((off_t) size > bsize) { |
352 size = (size_t) bsize; | 352 size = (size_t) bsize; |
353 } | 353 } |
354 } | 354 } |
419 /* | 419 /* |
420 * allocate block aligned to a disk sector size to enable | 420 * allocate block aligned to a disk sector size to enable |
421 * userland buffer direct usage conjunctly with directio | 421 * userland buffer direct usage conjunctly with directio |
422 */ | 422 */ |
423 | 423 |
424 b->start = ngx_pmemalign(ctx->pool, size, ctx->alignment); | 424 b->start = ngx_pmemalign(ctx->pool, size, (size_t) ctx->alignment); |
425 if (b->start == NULL) { | 425 if (b->start == NULL) { |
426 return NGX_ERROR; | 426 return NGX_ERROR; |
427 } | 427 } |
428 | 428 |
429 } else { | 429 } else { |