Skip to content

Commit

Permalink
fluxbox: fix narrowing error on 32bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kencu committed Oct 10, 2022
1 parent bc5a40a commit 6fced83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x11/fluxbox/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ patchfiles patch-Makefile.in.diff
patchfiles-append patch-fbtime-gettime.diff \
patch-fluxbox-remote.diff

# https://trac.macports.org/ticket/65979
patchfiles-append patch-ewmh-static-cast.diff

configure.args ac_cv_prog_regex_cmd="LC_CTYPE=C sed"

post-destroot {
Expand Down
11 changes: 11 additions & 0 deletions x11/fluxbox/files/patch-ewmh-static-cast.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/Ewmh.cc.orig 2022-10-10 13:03:55.000000000 -0700
+++ src/Ewmh.cc 2022-10-10 13:04:33.000000000 -0700
@@ -914,7 +914,7 @@
* Window Manager.
*
*/
- long value[2] = {screen.width(), screen.height()};
+ long value[2] = {static_cast<long>(screen.width()), static_cast<long>(screen.height())};
screen.rootWindow().changeProperty(m_net->desktop_geometry,
XA_CARDINAL, 32,
PropModeReplace,

0 comments on commit 6fced83

Please sign in to comment.