Explorar el Código

fix recursive String

Chris Bannister hace 10 años
padre
commit
609c73bc0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      frame.go

+ 1 - 1
frame.go

@@ -175,7 +175,7 @@ func (c Consistency) String() string {
 	case LocalOne:
 		return "LOCAL_ONE"
 	default:
-		return fmt.Sprintf("UNKNOWN_CONS_0x%x", c)
+		return fmt.Sprintf("UNKNOWN_CONS_0x%x", uint16(c))
 	}
 }