fix for long long time_t on LP64 archs; ok sthen@
This commit is contained in:
parent
b6f9703194
commit
ceec6a88f5
17
net/poco/patches/patch-Foundation_src_PatternFormatter_cpp
Normal file
17
net/poco/patches/patch-Foundation_src_PatternFormatter_cpp
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-Foundation_src_PatternFormatter_cpp,v 1.1 2013/08/30 20:15:39 naddy Exp $
|
||||
|
||||
Fix for long long time_t on LP64 archs. Poco's type system assumes that
|
||||
64-bit quantities are type long on LP64 archs and that long long
|
||||
only exists on 32-bit archs.
|
||||
|
||||
--- Foundation/src/PatternFormatter.cpp.orig Sat Aug 17 16:38:20 2013
|
||||
+++ Foundation/src/PatternFormatter.cpp Sat Aug 17 16:38:55 2013
|
||||
@@ -123,7 +123,7 @@ void PatternFormatter::format(const Message& msg, std:
|
||||
case 'F': NumberFormatter::append0(text, dateTime.millisecond()*1000 + dateTime.microsecond(), 6); break;
|
||||
case 'z': text.append(DateTimeFormatter::tzdISO(_localTime ? Timezone::tzd() : DateTimeFormatter::UTC)); break;
|
||||
case 'Z': text.append(DateTimeFormatter::tzdRFC(_localTime ? Timezone::tzd() : DateTimeFormatter::UTC)); break;
|
||||
- case 'E': NumberFormatter::append(text, msg.getTime().epochTime()); break;
|
||||
+ case 'E': NumberFormatter::append(text, (Int64)msg.getTime().epochTime()); break;
|
||||
case '[':
|
||||
{
|
||||
++it;
|
Loading…
Reference in New Issue
Block a user