accept an uint16, not an int

This commit is contained in:
Miek Gieben 2011-08-08 10:35:16 +02:00
parent 7ef1892814
commit 0d917b3c92
1 changed files with 3 additions and 3 deletions

View File

@ -155,9 +155,9 @@ func NewRRString(s string) (RR, os.Error) {
// NewRR returns a new RR with the hdr.Rrtype also set.
// If the type i is not known, nil is returned.
func NewRR(i int) RR {
r := rr_mk[uint16(i)]()
r.Header().Rrtype = uint16(i)
func NewRR(i uint16) RR {
r := rr_mk[i]()
r.Header().Rrtype = i
return r
}