FreeBSD Bugzilla – Attachment 169765 Details for
Bug 209108
x11/fbdesk: Fix build with libc++ 3.8.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix type for abs() call in x11/fbdesk
x11__fbdesk-fix-abs-1.diff (text/plain), 1.08 KB, created by
Dimitry Andric
on 2016-04-27 18:03:08 UTC
(
hide
)
Description:
Fix type for abs() call in x11/fbdesk
Filename:
MIME Type:
Creator:
Dimitry Andric
Created:
2016-04-27 18:03:08 UTC
Size:
1.08 KB
patch
obsolete
>Index: x11/fbdesk/files/patch-TextBox.cc >=================================================================== >--- x11/fbdesk/files/patch-TextBox.cc (nonexistent) >+++ x11/fbdesk/files/patch-TextBox.cc (working copy) >@@ -0,0 +1,11 @@ >+--- src/FbTk/TextBox.cc.orig 2006-03-25 15:42:00 UTC >++++ src/FbTk/TextBox.cc >+@@ -199,7 +199,7 @@ void TextBox::buttonPressEvent(XButtonEv >+ int delta = width(); >+ int tmp = 0; >+ for(i = m_start_pos; i <= m_end_pos; i++) { >+- tmp = abs(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos)); >++ tmp = abs((int)(event.x - font().textWidth(m_text.c_str() + m_start_pos, i - m_start_pos))); >+ >+ if (tmp < delta) { >+ delta = tmp; > >Property changes on: x11/fbdesk/files/patch-TextBox.cc >___________________________________________________________________ >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 209108
: 169765