diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-03-09 12:24:01 +0000 |
| commit | 032c7c28083e17bdcfd763b3cf81447b06a07978 (patch) | |
| tree | e5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/a2algo.h | |
| parent | ca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff) | |
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/a2algo.h')
| -rw-r--r-- | src/a2algo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/a2algo.h b/src/a2algo.h index 1a5a8aab..81c3c34d 100644 --- a/src/a2algo.h +++ b/src/a2algo.h @@ -41,10 +41,10 @@ namespace aria2 { template<typename InputIterator, typename OutputIterator> OutputIterator ncopy(InputIterator first, InputIterator last, - int32_t count, OutputIterator destination) + size_t count, OutputIterator destination) { OutputIterator x = destination; - for(int32_t i = 0; i < count; ++i) { + while(count--) { x = std::copy(first, last, destination); } return x; |
