Skip to content

Commit

Permalink
Avoid compiler warnings and fix error in assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 14, 2023
1 parent b4feee3 commit a67e28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tools/AGSParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
- (unsigned) skipArray;
- (unsigned) skipBlock;
- (unsigned) skipBlock: (BOOL*)isEmpty;
- (unsigned) skipGeneric;
- (unsigned) skipLiteral;
- (unsigned) skipRemainderOfLine;
- (unsigned) skipSpaces;
Expand Down
2 changes: 1 addition & 1 deletion Tools/AGSParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -3981,7 +3981,7 @@ - (unsigned) parsePreprocessor
NSString *directive;
// NSString *where = [self where];

NSAssert(pos > 0 & '#' == buffer[pos - 1], NSInternalInconsistencyException);
NSAssert(pos > 0 && '#' == buffer[pos - 1], NSInternalInconsistencyException);

inPreprocessorDirective = YES;
directive = [self parseIdentifier];
Expand Down

0 comments on commit a67e28a

Please sign in to comment.