Skip to content

Commit

Permalink
fix: ensure 64-bit ints on all builds, closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Apr 19, 2020
1 parent b3b2c94 commit fb8f38a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cloudflare/structs/resp/config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package resp

type ConfigData struct {
PremiumDataBytes int `json:"premium_data_bytes"`
ReferralRewardBytes int `json:"referral_reward_bytes"`
PremiumDataBytes int64 `json:"premium_data_bytes"`
ReferralRewardBytes int64 `json:"referral_reward_bytes"`
Denylist []Denylist `json:"denylist"`
}
type V4 struct {
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/structs/resp/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type DeviceData struct {
WaitlistEnabled bool `json:"waitlist_enabled"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Place int `json:"place"`
Place int64 `json:"place"`
Enabled bool `json:"enabled"`
}
type Endpoint struct {
Expand Down
2 changes: 1 addition & 1 deletion cloudflare/structs/resp/registration.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ type RegistrationData struct {

type RegistrationAccount struct {
AccountData
Usage int `json:"usage"`
Usage int64 `json:"usage"`
}
8 changes: 4 additions & 4 deletions cloudflare/structs/resp/updateLicense.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ type UpdateLicenseData struct {
AccountType string `json:"account_type"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
PremiumData int `json:"premium_data"`
Quota int `json:"quota"`
PremiumData int64 `json:"premium_data"`
Quota int64 `json:"quota"`
WarpPlus bool `json:"warp_plus"`
ReferralCount int `json:"referral_count"`
ReferralRenewalCountdown int `json:"referral_renewal_countdown"`
ReferralCount int64 `json:"referral_count"`
ReferralRenewalCountdown int64 `json:"referral_renewal_countdown"`
Role string `json:"role"`
}

0 comments on commit fb8f38a

Please sign in to comment.