Skip to content

Commit

Permalink
fix: add uint32 to Magic1 and Magic2
Browse files Browse the repository at this point in the history
Discovered in #6971. Go compiler cannot deduce proper type on 32bit architectures for those constants,
in `fmt.Print(f)` functions. Since we only compare them with uint32 variables, it makes sense to add proper
types to them.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
  • Loading branch information
DmitriyMV committed Mar 21, 2023
1 parent 777c8d6 commit b246c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/meta/internal/adv/talos/talos.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const (

// Magic constants.
const (
Magic1 = 0x5a4b3c2d
Magic2 = 0xa5b4c3d2
Magic1 uint32 = 0x5a4b3c2d
Magic2 uint32 = 0xa5b4c3d2
)

// Tag is the key.
Expand Down

0 comments on commit b246c90

Please sign in to comment.