Skip to content

Commit

Permalink
* Make sure Parser exhausts all combinations of method parameter t…
Browse files Browse the repository at this point in the history
…ypes even with duplicates (issue bytedeco/javacv#518)
  • Loading branch information
saudet committed Oct 10, 2016
1 parent 076fd04 commit bf899dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Make sure `Parser` exhausts all combinations of method parameter types even with duplicates ([issue bytedeco/javacv#518](https://github.com/bytedeco/javacv/issues/518))
* Make `Loader` cache libraries (in `~/.javacpp/cache/` by default) instead of using temporary files ([pull #120](https://github.com/bytedeco/javacpp/pull/120))
* Have `Parser` annotate the `allocate()` functions and not the actual constructors ([issue bytedeco/javacpp-presets#297](https://github.com/bytedeco/javacpp-presets/issues/297))
* Fix `Parser` handling of `class`, `struct`, or `union` types with variables declared in the same statement
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ boolean function(Context context, DeclarationList declList) throws ParserExcepti
if (type.virtual && context.virtualize) {
break;
}
} else if (found && n / 2 > 0 && n % 2 == 0) {
} else if (found && n / 2 > 0 && n % 2 == 0 && n / 2 > Math.max(dcl.infoNumber, dcl.parameters.infoNumber)) {
break;
}
prevDcl.add(dcl);
Expand Down

0 comments on commit bf899dc

Please sign in to comment.