Skip to content

Commit 90f9fd0

Browse files
committed
Used Bytes_val instead of String_val
1 parent f9e1d34 commit 90f9fd0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/postgresql_stubs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,8 +1329,7 @@ CAMLprim value PQgetline_stub_bc(
13291329
CAMLprim intnat PQgetlineAsync_stub(
13301330
value v_conn, value v_buf, intnat pos, intnat len)
13311331
{
1332-
return PQgetlineAsync(
1333-
get_conn(v_conn), (char *) String_val(v_buf) + pos, len);
1332+
return PQgetlineAsync(get_conn(v_conn), (char *) Bytes_val(v_buf) + pos, len);
13341333
}
13351334

13361335
CAMLprim value PQgetlineAsync_stub_bc(

0 commit comments

Comments
 (0)