FreeBSD Bugzilla – Attachment 177153 Details for
Bug 214640
multimedia/k9copy-kde4 : fix 'abs is ambiguous'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
work around abs()
fix_k9copy_abs.diff (text/plain), 1.96 KB, created by
Tobias C. Berner
on 2016-11-18 21:07:34 UTC
(
hide
)
Description:
work around abs()
Filename:
MIME Type:
Creator:
Tobias C. Berner
Created:
2016-11-18 21:07:34 UTC
Size:
1.96 KB
patch
obsolete
>Index: multimedia/k9copy-kde4/files/patch-src_backup_k9dvdbackup.cpp >=================================================================== >--- multimedia/k9copy-kde4/files/patch-src_backup_k9dvdbackup.cpp (nonexistent) >+++ multimedia/k9copy-kde4/files/patch-src_backup_k9dvdbackup.cpp (working copy) >@@ -0,0 +1,25 @@ >+/wrkdirs/usr/ports/multimedia/k9copy-kde4/work/k9copy-2.3.4-Source/src/backup/k9dvdbackup.cpp:888:24: error: call to 'abs' is ambiguous >+ *_offset = abs(vobu1->newSector - vobu2->newSector) | maskOffset1 ; >+ ^~~ >+/usr/include/stdlib.h:83:6: note: candidate function >+int abs(int) __pure2; >+ ^ >+/usr/include/c++/v1/stdlib.h:115:44: note: candidate function >+inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);} >+ ^ >+/usr/include/c++/v1/stdlib.h:117:44: note: candidate function >+inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);} >+ ^ >+ >+--- src/backup/k9dvdbackup.cpp.orig 2016-11-18 20:25:13 UTC >++++ src/backup/k9dvdbackup.cpp >+@@ -885,7 +885,8 @@ k9Vobu * k9DVDBackup::remapOffset(uint32 >+ >+ >+ if ((vobu1 !=NULL) && (vobu2!=NULL)) { >+- *_offset = abs(vobu1->newSector - vobu2->newSector) | maskOffset1 ; >++ uint32_t delta = ( vobu1->newSector > vobu2->newSector ? vobu1->newSector - vobu2->newSector : vobu2->newSector - vobu1->newSector ); >++ *_offset = delta | maskOffset1 ; >+ *_offset |= maskOffset2; >+ return vobu2; >+ } > >Property changes on: multimedia/k9copy-kde4/files/patch-src_backup_k9dvdbackup.cpp >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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 214640
: 177153