Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
id3lib
id3lib-3.8.3-gcc34.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File id3lib-3.8.3-gcc34.patch of Package id3lib
diff -ru id3lib-3.8.2/include/id3/readers.h id3lib-3.8.2.fixed/include/id3/readers.h --- id3lib-3.8.2/include/id3/readers.h 2002-11-24 00:23:00.000000000 +0000 +++ id3lib-3.8.2.fixed/include/id3/readers.h 2004-01-16 12:10:37.000000000 +0000 @@ -57,7 +57,7 @@ } virtual pos_type getBeg() { return 0; } - virtual pos_type getCur() { return _stream.tellg(); } + virtual pos_type getCur() { return streamoff(_stream.tellg()); } virtual pos_type getEnd() { pos_type cur = this->getCur(); diff -ru id3lib-3.8.2/include/id3/writers.h id3lib-3.8.2.fixed/include/id3/writers.h --- id3lib-3.8.2/include/id3/writers.h 2002-11-24 00:23:00.000000000 +0000 +++ id3lib-3.8.2.fixed/include/id3/writers.h 2004-01-16 12:15:01.000000000 +0000 @@ -39,7 +39,7 @@ protected: ostream& getWriter() const { return _stream; } public: - ID3_OStreamWriter(ostream& writer) : _stream(writer), _beg(_stream.tellp()) { ; } + ID3_OStreamWriter(ostream& writer) : _stream(writer), _beg(streamoff(_stream.tellp())) { ; } virtual ~ID3_OStreamWriter() { ; } virtual void close() { ; } @@ -66,7 +66,7 @@ } virtual pos_type getBeg() { return _beg; } - virtual pos_type getCur() { return _stream.tellp(); } + virtual pos_type getCur() { return streamoff(_stream.tellp()); } }; class ID3_CPP_EXPORT ID3_OFStreamWriter : public ID3_OStreamWriter @@ -89,7 +89,7 @@ protected: iostream& getWriter() const { return _stream; } public: - ID3_IOStreamWriter(iostream& writer) : _stream(writer), _beg(_stream.tellp()) { ; } + ID3_IOStreamWriter(iostream& writer) : _stream(writer), _beg(streamoff(_stream.tellp())) { ; } virtual ~ID3_IOStreamWriter() { ; } virtual void close() { ; } @@ -116,7 +116,7 @@ } virtual pos_type getBeg() { return _beg; } - virtual pos_type getCur() { return _stream.tellp(); } + virtual pos_type getCur() { return streamoff(_stream.tellp()); } }; class ID3_CPP_EXPORT ID3_FStreamWriter : public ID3_IOStreamWriter diff -ru id3lib-3.8.2/src/utils.cpp id3lib-3.8.2.fixed/src/utils.cpp --- id3lib-3.8.2/src/utils.cpp 2002-11-24 00:23:00.000000000 +0000 +++ id3lib-3.8.2.fixed/src/utils.cpp 2004-01-16 12:17:56.000000000 +0000 @@ -258,9 +258,9 @@ size_t size = 0; if (file.is_open()) { - streamoff curpos = file.tellg(); + streamoff curpos = streamoff(file.tellg()); file.seekg(0, ios::end); - size = file.tellg(); + size = streamoff(file.tellg()); file.seekg(curpos); } return size; @@ -271,9 +271,9 @@ size_t size = 0; if (file.is_open()) { - streamoff curpos = file.tellg(); + streamoff curpos = streamoff(file.tellg()); file.seekg(0, ios::end); - size = file.tellg(); + size = streamoff(file.tellg()); file.seekg(curpos); } return size; @@ -284,9 +284,9 @@ size_t size = 0; if (file.is_open()) { - streamoff curpos = file.tellp(); + streamoff curpos = streamoff(file.tellp()); file.seekp(0, ios::end); - size = file.tellp(); + size = streamoff(file.tellp()); file.seekp(curpos); } return size;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor