Skip to content

Commit d183c0e

Browse files
author
Igor Milyakov
committed
Changing type to Int
1 parent 4634e2a commit d183c0e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/CassandraClient/Session.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ extension CassandraClient {
342342
let eventLoop = eventLoop ?? self.eventLoopGroup.next()
343343

344344
do {
345-
try statement.setPagingSize(pageSize)
345+
try statement.setPagingSize(Int(pageSize))
346346
} catch {
347347
return eventLoop.makeFailedFuture(error)
348348
}
@@ -559,7 +559,7 @@ extension CassandraClient.Session {
559559
)
560560
async throws -> CassandraClient.PaginatedRows
561561
{
562-
try statement.setPagingSize(pageSize)
562+
try statement.setPagingSize(Int(pageSize))
563563
return CassandraClient.PaginatedRows(session: self, statement: statement, logger: logger)
564564
}
565565

Sources/CassandraClient/Statement.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ extension CassandraClient {
147147
}
148148

149149
/// Sets the paging size of the returned paginated results.
150-
public func setPagingSize(_ pagingSize: Int32) throws {
151-
try checkResult { cass_statement_set_paging_size(self.rawPointer, pagingSize) }
150+
public func setPagingSize(_ pagingSize: Int) throws {
151+
try checkResult { cass_statement_set_paging_size(self.rawPointer, Int32(clamping: pagingSize)) }
152152
}
153153

154154
/// Sets the starting page of the returned paginated results.

0 commit comments

Comments
 (0)