Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 6563 Details for
Bug 12307
zinf 2.2.0 is not 64-bit clean
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make zinf 2.2.0 work on alpha
zinf-2.2.0-64bit.patch (text/plain), 2.39 KB, created by
chouser (RETIRED)
on 2002-12-17 09:49:31 UTC
(
hide
)
Description:
patch to make zinf 2.2.0 work on alpha
Filename:
MIME Type:
Creator:
chouser (RETIRED)
Created:
2002-12-17 09:49:31 UTC
Size:
2.39 KB
patch
obsolete
>--- ../zinf-2.2.0/plm/metadata/id3v2/io_helpers.cpp 2002-06-20 02:41:07.000000000 -0400 >+++ plm/metadata/id3v2/io_helpers.cpp 2002-12-12 14:21:15.000000000 -0500 >@@ -294,7 +294,7 @@ > { > ID3_Writer::pos_type beg = writer.getCur(); > ID3_Writer::size_type strLen = buf.size(); >- ID3_Writer::size_type size = min(len, strLen); >+ ID3_Writer::size_type size = min((uint32)len, strLen); > writer.writeChars(buf.data(), size); > for (; size < len; ++size) > { >--- ../zinf-2.2.0/plm/metadata/id3v2/io_helpers.h 2002-06-20 02:41:07.000000000 -0400 >+++ plm/metadata/id3v2/io_helpers.h 2002-12-13 16:37:00.000000000 -0500 >@@ -73,7 +73,7 @@ > size_t writeUnicodeString(ID3_Writer&, String, bool = true); > size_t writeUnicodeText(ID3_Writer&, String, bool = true); > size_t writeBENumber(ID3_Writer&, uint32 val, size_t); >- size_t writeTrailingSpaces(ID3_Writer&, String, size_t); >+ uint32 writeTrailingSpaces(ID3_Writer&, String, size_t); > size_t writeUInt28(ID3_Writer&, uint32); > }; > }; >--- ../zinf-2.2.0/plm/metadata/id3v2/io_strings.h 2002-06-20 02:41:07.000000000 -0400 >+++ plm/metadata/id3v2/io_strings.h 2002-12-12 14:12:07.000000000 -0500 >@@ -63,7 +63,7 @@ > } > virtual size_type readChars(char_type buf[], size_type len) > { >- size_type size = min(len, _string.size() - _cur); >+ size_type size = min((uint32)len, (uint32)(_string.size() - _cur)); > _string.copy(reinterpret_cast<String::value_type *>(buf), size, _cur); > _cur += size; > return size; >@@ -100,7 +100,7 @@ > > virtual size_type skipChars(size_type len) > { >- size_type size = min(len, _string.size() - _cur); >+ size_type size = min(len, (uint32)(_string.size() - _cur)); > _cur += size; > return size; > } >@@ -133,7 +133,7 @@ > } > virtual size_type readChars(char_type buf[], size_type len) > { >- size_type size = min(len, _string.size() - _cur); >+ size_type size = min(len, (uint32)(_string.size() - _cur)); > _string.copy(reinterpret_cast<BString::value_type *>(buf), size, _cur); > _cur += size; > return size; >@@ -170,7 +170,7 @@ > > virtual size_type skipChars(size_type len) > { >- size_type size = min(len, _string.size() - _cur); >+ size_type size = min(len, (uint32)(_string.size() - _cur)); > _cur += size; > return size; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12307
: 6563