@@ -44,10 +44,10 @@ cdef class DNSQuestion(DNSEntry):
4444
4545cdef class DNSRecord(DNSEntry):
4646
47- cdef public cython.float ttl
47+ cdef public unsigned int ttl
4848 cdef public double created
4949
50- cdef _fast_init_record(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, double created)
50+ cdef _fast_init_record(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, double created)
5151
5252 cdef bint _suppressed_by_answer(self , DNSRecord answer)
5353
@@ -66,15 +66,15 @@ cdef class DNSRecord(DNSEntry):
6666
6767 cpdef bint is_recent(self , double now)
6868
69- cdef _set_created_ttl(self , double now, cython.float ttl)
69+ cdef _set_created_ttl(self , double now, unsigned int ttl)
7070
7171cdef class DNSAddress(DNSRecord):
7272
7373 cdef public cython.int _hash
7474 cdef public bytes address
7575 cdef public object scope_id
7676
77- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, bytes address, object scope_id, double created)
77+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, bytes address, object scope_id, double created)
7878
7979 cdef bint _eq(self , DNSAddress other)
8080
@@ -87,7 +87,7 @@ cdef class DNSHinfo(DNSRecord):
8787 cdef public str cpu
8888 cdef public str os
8989
90- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str cpu, str os, double created)
90+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str cpu, str os, double created)
9191
9292 cdef bint _eq(self , DNSHinfo other)
9393
@@ -99,7 +99,7 @@ cdef class DNSPointer(DNSRecord):
9999 cdef public str alias
100100 cdef public str alias_key
101101
102- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str alias, double created)
102+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str alias, double created)
103103
104104 cdef bint _eq(self , DNSPointer other)
105105
@@ -110,7 +110,7 @@ cdef class DNSText(DNSRecord):
110110 cdef public cython.int _hash
111111 cdef public bytes text
112112
113- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, bytes text, double created)
113+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, bytes text, double created)
114114
115115 cdef bint _eq(self , DNSText other)
116116
@@ -125,7 +125,7 @@ cdef class DNSService(DNSRecord):
125125 cdef public str server
126126 cdef public str server_key
127127
128- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, cython.uint priority, cython.uint weight, cython.uint port, str server, double created)
128+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, cython.uint priority, cython.uint weight, cython.uint port, str server, double created)
129129
130130 cdef bint _eq(self , DNSService other)
131131
@@ -137,7 +137,7 @@ cdef class DNSNsec(DNSRecord):
137137 cdef public str next_name
138138 cdef public cython.list rdtypes
139139
140- cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, cython.float ttl, str next_name, cython.list rdtypes, double created)
140+ cdef _fast_init(self , str name, cython.uint type_, cython.uint class_, unsigned int ttl, str next_name, cython.list rdtypes, double created)
141141
142142 cdef bint _eq(self , DNSNsec other)
143143
0 commit comments