Permalink
Browse files

Merge pull request #92 from erikyuzwa/patch-1

Explicitly cast int to Boolean to resolve incompatible type errors as mentioned in Issue #59
  • Loading branch information...
2 parents 79ba886 + fc0b5e9 commit 0967c4fea1379d327492ffdb210165e68aebf070 @Draknek Draknek committed Oct 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 net/flashpunk/utils/Input.as
@@ -151,7 +151,7 @@
}
return false;
}
- return (input < 0) ? _pressNum : _press.indexOf(input) >= 0;
+ return (input < 0) ? Boolean(_pressNum): _press.indexOf(input) >= 0;
}
/**
@@ -172,7 +172,7 @@
}
return false;
}
- return (input < 0) ? _releaseNum : _release.indexOf(input) >= 0;
+ return (input < 0) ? Boolean(_releaseNum) : _release.indexOf(input) >= 0;
}
/**

0 comments on commit 0967c4f

Please sign in to comment.