mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-06 18:07:41 +02:00
Fix compare signed with unsigned in python interface for pythonmod
git-svn-id: file:///svn/unbound/trunk@4968 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
i = 0; cnt = 0;
|
||||
while (i < len) {
|
||||
char buf[LDNS_MAX_LABELLEN+1];
|
||||
if(((unsigned int)name[i])+1 <= (int)sizeof(buf)) {
|
||||
if(((unsigned int)name[i])+1 <= (unsigned int)sizeof(buf)) {
|
||||
memmove(buf, name + i + 1, (unsigned int)name[i]);
|
||||
buf[(unsigned int)name[i]] = 0;
|
||||
PyList_SetItem(list, cnt, PyString_FromString(buf));
|
||||
|
||||
Reference in New Issue
Block a user