accept an uint16, not an int
This commit is contained in:
parent
7ef1892814
commit
0d917b3c92
6
types.go
6
types.go
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue