Skip to content

Commit c54ce43

Browse files
committed
Fix maybe-uninitialized compiler warning in int4_encode()
1 parent 6b48443 commit c54ce43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/protocol/codecs/int.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ cdef int2_decode(ConnectionSettings settings, FastReadBuffer buf):
4141

4242
cdef int4_encode(ConnectionSettings settings, WriteBuffer buf, obj):
4343
cdef int overflow = 0
44-
cdef long val
44+
cdef long val = 0
4545

4646
try:
4747
val = cpython.PyLong_AsLong(obj)

0 commit comments

Comments
 (0)