nghttpx: Use the same type as standard stream operator<<
This commit is contained in:
parent
f7287df03f
commit
153531d4d0
|
@ -228,7 +228,7 @@ Log &Log::operator<<(const ImmutableString &s) {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log &Log::operator<<(int64_t n) {
|
Log &Log::operator<<(long long n) {
|
||||||
if (n >= 0) {
|
if (n >= 0) {
|
||||||
return *this << static_cast<uint64_t>(n);
|
return *this << static_cast<uint64_t>(n);
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,7 @@ Log &Log::operator<<(int64_t n) {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
Log &Log::operator<<(uint64_t n) {
|
Log &Log::operator<<(unsigned long long n) {
|
||||||
if (flags_ & fmt_hex) {
|
if (flags_ & fmt_hex) {
|
||||||
write_hex(n);
|
write_hex(n);
|
||||||
return *this;
|
return *this;
|
||||||
|
|
|
@ -100,12 +100,20 @@ public:
|
||||||
Log &operator<<(const char *s);
|
Log &operator<<(const char *s);
|
||||||
Log &operator<<(const StringRef &s);
|
Log &operator<<(const StringRef &s);
|
||||||
Log &operator<<(const ImmutableString &s);
|
Log &operator<<(const ImmutableString &s);
|
||||||
Log &operator<<(int16_t n) { return *this << static_cast<int64_t>(n); }
|
Log &operator<<(short n) { return *this << static_cast<long long>(n); }
|
||||||
Log &operator<<(int32_t n) { return *this << static_cast<int64_t>(n); }
|
Log &operator<<(int n) { return *this << static_cast<long long>(n); }
|
||||||
Log &operator<<(int64_t n);
|
Log &operator<<(long n) { return *this << static_cast<long long>(n); }
|
||||||
Log &operator<<(uint16_t n) { return *this << static_cast<uint64_t>(n); }
|
Log &operator<<(long long n);
|
||||||
Log &operator<<(uint32_t n) { return *this << static_cast<uint64_t>(n); }
|
Log &operator<<(unsigned short n) {
|
||||||
Log &operator<<(uint64_t n);
|
return *this << static_cast<unsigned long long>(n);
|
||||||
|
}
|
||||||
|
Log &operator<<(unsigned int n) {
|
||||||
|
return *this << static_cast<unsigned long long>(n);
|
||||||
|
}
|
||||||
|
Log &operator<<(unsigned long n) {
|
||||||
|
return *this << static_cast<unsigned long long>(n);
|
||||||
|
}
|
||||||
|
Log &operator<<(unsigned long long n);
|
||||||
Log &operator<<(float n) { return *this << static_cast<double>(n); }
|
Log &operator<<(float n) { return *this << static_cast<double>(n); }
|
||||||
Log &operator<<(double n);
|
Log &operator<<(double n);
|
||||||
Log &operator<<(long double n);
|
Log &operator<<(long double n);
|
||||||
|
|
Loading…
Reference in New Issue