Skip to content

Commit

Permalink
Allow configure script to run with clang-5, and fixed a minor
Browse files Browse the repository at this point in the history
warning when compiling with clang++-5.
  • Loading branch information
sa666666 committed Feb 11, 2017
1 parent c0a3a53 commit c80f72b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ if test "$have_clang" = yes; then
fi

case $cxx_version in
[3].[4-9]|[3].[4-9].[0-9]|[3].[4-9].[0-9][-.]*|[4].[0-9].[0-9])
[3].[4-9]|[3].[4-9].[0-9]|[3].[4-9].[0-9][-.]*|[4-9].[0-9].[0-9])
_cxx_major=`echo $cxx_version | cut -d '.' -f 1`
_cxx_minor=`echo $cxx_version | cut -d '.' -f 2`
cxx_version="$cxx_version, ok"
Expand Down
1 change: 0 additions & 1 deletion src/emucore/TIASurface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ uInt32 TIASurface::enableScanlines(int relative, int absolute)
FBSurface::Attributes& attr = mySLineSurface->attributes();
if(relative == 0) attr.blendalpha = absolute;
else attr.blendalpha += relative;
attr.blendalpha = std::max(0u, attr.blendalpha);
attr.blendalpha = std::min(100u, attr.blendalpha);

mySLineSurface->applyAttributes();
Expand Down

0 comments on commit c80f72b

Please sign in to comment.