tags 337820 patch
thanks

Hi Daniel,

The attached patch allows tse3 to build successfully on both alpha and i386.
IMHO, this is a better answer than either smashing 64-bit size_t values down
to 32 bits, or having to sprinkle casts everywhere; unsigned int and
uint64_t are pretty much always guaranteed to be different sizes, and size_t
is bound to match one of the two on all platforms I'm aware of, so this
should allow clean builds with gcc-4.0 on all platforms.

Since tse3 has reverse-dependencies that are tied to the KDE ABI transition,
I'll plan to upload an NMU for this bug in the next couple of days if you
don't object.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/
diff -u tse3-0.3.1/debian/changelog tse3-0.3.1/debian/changelog
--- tse3-0.3.1/debian/changelog
+++ tse3-0.3.1/debian/changelog
@@ -1,3 +1,12 @@
+tse3 (0.3.1-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Medium-urgency upload for RC bugfix.
+  * add a uint64_t variant of XmlFileWriter::element(), to cover the case
+    when sizeof(size_t) != sizeof(unsigned int).  Closes: #337820.
+
+ -- Steve Langasek <[EMAIL PROTECTED]>  Wed, 28 Dec 2005 04:16:43 -0800
+
 tse3 (0.3.1-2) unstable; urgency=low
 
   * Rebuild for yet another C++ transition. (Closes: #339272)
only in patch2:
unchanged:
--- tse3-0.3.1.orig/src/tse3/file/XML.h
+++ tse3-0.3.1/src/tse3/file/XML.h
@@ -154,6 +154,7 @@
                 void element(const std::string &name, const char        
*value);
                 void element(const std::string &name, int                
value);
                 void element(const std::string &name, unsigned int       
value);
+                void element(const std::string &name, uint64_t           
value);
                 void element(const std::string &name, bool               
value);
 
                 void comment(const std::string &comment);
only in patch2:
unchanged:
--- tse3-0.3.1.orig/src/tse3/file/XML.cpp
+++ tse3-0.3.1/src/tse3/file/XML.cpp
@@ -117,6 +117,13 @@
 }
 
 
+void TSE3::File::XmlFileWriter::element(const std::string &name, uint64_t 
value)
+{
+    indent(out);
+    out << "<" << name << " value=\"" << value << "\"/>\n";
+}
+
+
 void TSE3::File::XmlFileWriter::element(const std::string &name, bool value)
 {
     indent(out);

Attachment: signature.asc
Description: Digital signature

Reply via email to