Skip to content

Commit 3c6a1f1

Browse files
geoffw0jbj
andauthored
Update cpp/ql/src/semmle/code/cpp/Location.qll
Co-authored-by: Jonas Jensen <[email protected]>
1 parent a93246d commit 3c6a1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/Location.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ deprecated library class LocationExpr extends Location, @location_expr { }
128128
* Gets the length of the longest line in file `f`.
129129
*/
130130
pragma[nomagic]
131-
private int maxCols(File f) { result = max(Location l | l.getFile() = f | [l.getStartColumn(), l.getEndColumn()]) }
131+
private int maxCols(File f) { result = max(Location l | l.getFile() = f | l.getStartColumn().maximum(l.getEndColumn())) }
132132

133133
/**
134134
* A C/C++ element that has a location in a file

0 commit comments

Comments
 (0)