@@ -117,8 +117,8 @@ func (v *validate) traverseField(parent reflect.Value, current reflect.Value, ns
117117 actualTag : ct .tag ,
118118 ns : v .str1 ,
119119 structNs : v .str2 ,
120- fieldLen : len (cf .altName ),
121- structfieldLen : len (cf .name ),
120+ fieldLen : uint8 ( len (cf .altName ) ),
121+ structfieldLen : uint8 ( len (cf .name ) ),
122122 param : ct .param ,
123123 kind : kind ,
124124 },
@@ -133,8 +133,8 @@ func (v *validate) traverseField(parent reflect.Value, current reflect.Value, ns
133133 actualTag : ct .tag ,
134134 ns : v .str1 ,
135135 structNs : v .str2 ,
136- fieldLen : len (cf .altName ),
137- structfieldLen : len (cf .name ),
136+ fieldLen : uint8 ( len (cf .altName ) ),
137+ structfieldLen : uint8 ( len (cf .name ) ),
138138 value : current .Interface (),
139139 param : ct .param ,
140140 kind : kind ,
@@ -327,8 +327,8 @@ OUTER:
327327 actualTag : ct .actualAliasTag ,
328328 ns : v .str1 ,
329329 structNs : v .str2 ,
330- fieldLen : len (cf .altName ),
331- structfieldLen : len (cf .name ),
330+ fieldLen : uint8 ( len (cf .altName ) ),
331+ structfieldLen : uint8 ( len (cf .name ) ),
332332 value : current .Interface (),
333333 param : ct .param ,
334334 kind : kind ,
@@ -346,8 +346,8 @@ OUTER:
346346 actualTag : tVal ,
347347 ns : v .str1 ,
348348 structNs : v .str2 ,
349- fieldLen : len (cf .altName ),
350- structfieldLen : len (cf .name ),
349+ fieldLen : uint8 ( len (cf .altName ) ),
350+ structfieldLen : uint8 ( len (cf .name ) ),
351351 value : current .Interface (),
352352 param : ct .param ,
353353 kind : kind ,
@@ -385,8 +385,8 @@ OUTER:
385385 actualTag : ct .tag ,
386386 ns : v .str1 ,
387387 structNs : v .str2 ,
388- fieldLen : len (cf .altName ),
389- structfieldLen : len (cf .name ),
388+ fieldLen : uint8 ( len (cf .altName ) ),
389+ structfieldLen : uint8 ( len (cf .name ) ),
390390 value : current .Interface (),
391391 param : ct .param ,
392392 kind : kind ,
0 commit comments