Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit ce8d2f2

Browse files
author
Sven Verdoolaege
committed
Tree::expect: change type of number to size_t
This is a more natural type for a number.
1 parent c30d850 commit ce8d2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/lang/tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct Tree : std::enable_shared_from_this<Tree> {
7979
void expect(int k) {
8080
expect(k, trees().size());
8181
}
82-
void expect(int k, int numsubtrees) {
82+
void expect(int k, size_t numsubtrees) {
8383
if (kind() != k || trees().size() != numsubtrees) {
8484
std::stringstream ss;
8585
ss << "expected kind '" << kindToString(k) << "' with " << numsubtrees

0 commit comments

Comments
 (0)