Skip to content

Commit a417814

Browse files
committed
Fix compiler warning in uuid.pyx
1 parent 1720f8a commit a417814

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uuid.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ cdef pg_uuid_bytes_from_str(str u, char *out):
6565
Py_ssize_t size
6666
unsigned char ch
6767
uint8_t acc, part, acc_set
68-
uint8_t i, j
68+
int i, j
6969

7070
orig_buf = <char*>cpythonx.PyUnicode_AsUTF8AndSize(u, &size)
7171
if size > 36 or size < 32:
@@ -75,7 +75,7 @@ cdef pg_uuid_bytes_from_str(str u, char *out):
7575

7676
acc_set = 0
7777
j = 0
78-
for i in range(0, size):
78+
for i in range(size):
7979
ch = <unsigned char>orig_buf[i]
8080
if ch == <unsigned char>b'-':
8181
continue

0 commit comments

Comments
 (0)