# # # patch "ChangeLog" # from [8c22bfe3c1119935ee85c1d07faf948c7d0ae031] # to [bfcbdb585f62b5bfaaa03bc43ea9b0e103ef2866] # # patch "boost/format/feed_args.hpp" # from [1c21ddeef08330f0b95675e1566c480fa0f08e95] # to [2e40edf9fe352317f27889aef86a73be58918b57] # ============================================================ --- ChangeLog 8c22bfe3c1119935ee85c1d07faf948c7d0ae031 +++ ChangeLog bfcbdb585f62b5bfaaa03bc43ea9b0e103ef2866 @@ -12,6 +12,7 @@ * simplestring_xform.cc: * txt2c.cc: * xdelta.cc: add some more using std::* directives. + * boost/format/feed_args.hpp: std::streamsize might be signed 2006-06-07 Matthew Gregan ============================================================ --- boost/format/feed_args.hpp 1c21ddeef08330f0b95675e1566c480fa0f08e95 +++ boost/format/feed_args.hpp 2e40edf9fe352317f27889aef86a73be58918b57 @@ -156,7 +156,7 @@ prefix_space = oss.widen(' '); size_type res_size = (std::min)( static_cast(specs.truncate_ - !!prefix_space), - buf.pcount() ); + static_cast(std::max(0,buf.pcount())) ); if (res_size) mk_str(res, res_beg, res_size, w, oss.fill(), fl, prefix_space, (specs.pad_scheme_ & format_item_t::centered) !=0 ); @@ -201,7 +201,7 @@ // we now have the minimal-length output const Ch * tmp_beg = buf.pbase(); size_type tmp_size = (std::min)(static_cast(specs.truncate_), - buf.pcount() ); + static_cast(std::max(0,buf.pcount())) ); if(static_cast(w) <= tmp_size) {