diff options
author | josh.macdonald@gmail.com <josh.macdonald@gmail.com@a3eca27d-f21b-0410-9b4a-6511e771f64e> | 2010-08-01 02:41:42 +0000 |
---|---|---|
committer | josh.macdonald@gmail.com <josh.macdonald@gmail.com@a3eca27d-f21b-0410-9b4a-6511e771f64e> | 2010-08-01 02:41:42 +0000 |
commit | f1f6f860e659b285b554641a28ba0a9933ddf9ef (patch) | |
tree | 5318dac415c576cd047fb5ee38d4ed46378b65e4 /xdelta3/xdelta3-fgk.h | |
parent | debec7aae3d3d3e5b1b2da62a9417ab3a0c72c00 (diff) |
Fixes for win7, especially named pipe handling
Diffstat (limited to 'xdelta3/xdelta3-fgk.h')
-rw-r--r-- | xdelta3/xdelta3-fgk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xdelta3/xdelta3-fgk.h b/xdelta3/xdelta3-fgk.h index 6f8c672..6c61a96 100644 --- a/xdelta3/xdelta3-fgk.h +++ b/xdelta3/xdelta3-fgk.h | |||
@@ -723,7 +723,7 @@ static usize_t fgk_nth_zero (fgk_stream* h, usize_t n) | |||
723 | ret = ret->right_child; | 723 | ret = ret->right_child; |
724 | } | 724 | } |
725 | 725 | ||
726 | return ret - h->alphabet; | 726 | return (usize_t)(ret - h->alphabet); |
727 | } | 727 | } |
728 | 728 | ||
729 | /* once fgk_decode_bit returns 1, this retrieves an index into the | 729 | /* once fgk_decode_bit returns 1, this retrieves an index into the |
@@ -732,7 +732,7 @@ static usize_t fgk_nth_zero (fgk_stream* h, usize_t n) | |||
732 | */ | 732 | */ |
733 | static int fgk_decode_data (fgk_stream* h) | 733 | static int fgk_decode_data (fgk_stream* h) |
734 | { | 734 | { |
735 | usize_t elt = h->decode_ptr - h->alphabet; | 735 | usize_t elt = (usize_t)(h->decode_ptr - h->alphabet); |
736 | 736 | ||
737 | if (IS_ADAPTIVE && h->decode_ptr->weight == 0) { | 737 | if (IS_ADAPTIVE && h->decode_ptr->weight == 0) { |
738 | usize_t i = 0; | 738 | usize_t i = 0; |