diff options
Diffstat (limited to 'xdelta3/xdelta3-decode.h')
-rw-r--r-- | xdelta3/xdelta3-decode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-decode.h b/xdelta3/xdelta3-decode.h index b0051aa..008993d 100644 --- a/xdelta3/xdelta3-decode.h +++ b/xdelta3/xdelta3-decode.h | |||
@@ -156,7 +156,7 @@ xd3_decode_section (xd3_stream *stream, | |||
156 | usize_t sect_need = section->size - section->pos; | 156 | usize_t sect_need = section->size - section->pos; |
157 | 157 | ||
158 | /* Allocate and copy */ | 158 | /* Allocate and copy */ |
159 | sect_take = min (sect_need, stream->avail_in); | 159 | sect_take = xd3_min (sect_need, stream->avail_in); |
160 | 160 | ||
161 | if (section->pos == 0) | 161 | if (section->pos == 0) |
162 | { | 162 | { |
@@ -582,7 +582,7 @@ xd3_decode_sections (xd3_stream *stream) | |||
582 | more = (need - stream->dec_winbytes); | 582 | more = (need - stream->dec_winbytes); |
583 | 583 | ||
584 | /* How much to consume. */ | 584 | /* How much to consume. */ |
585 | take = min (more, stream->avail_in); | 585 | take = xd3_min (more, stream->avail_in); |
586 | 586 | ||
587 | /* See if the input is completely available, to avoid copy. */ | 587 | /* See if the input is completely available, to avoid copy. */ |
588 | copy = (take != more); | 588 | copy = (take != more); |