Skip to content

Commit b00753a

Browse files
authored
Merge pull request #32849 from compnerd/spaceships
validation: make UnsafeBufferPointer Python3 friendly
2 parents ee0955a + 4cd8121 commit b00753a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation-test/stdlib/UnsafeBufferPointer.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ for testIndex in (0..<bufCount) {
425425
defer { allocated.deallocate() }
426426

427427
let buffer = ${Type}(start: allocated, count: bufCount)
428-
${'var' if mutable and action <> 'read' else 'let'} slice = buffer[sliceRange]
428+
${'var' if mutable and action != 'read' else 'let'} slice = buffer[sliceRange]
429429

430430
if _isDebugAssertConfiguration(),
431431
testIndex < sliceRange.lowerBound ||
@@ -466,7 +466,7 @@ for testRange in testRanges {
466466
defer { allocated.deallocate() }
467467

468468
let buffer = ${Type}(start: allocated, count: bufCount+2)
469-
${'var' if mutable and action <> 'read' else 'let'} slice = buffer[sliceRange]
469+
${'var' if mutable and action != 'read' else 'let'} slice = buffer[sliceRange]
470470

471471
if _isDebugAssertConfiguration(),
472472
testRange.lowerBound < sliceRange.lowerBound ||

0 commit comments

Comments
 (0)