summaryrefslogtreecommitdiff
path: root/src/a2algo.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
commit032c7c28083e17bdcfd763b3cf81447b06a07978 (patch)
treee5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/a2algo.h
parentca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (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.h4
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;