aboutsummaryrefslogtreecommitdiffstats
path: root/sysgen
diff options
context:
space:
mode:
Diffstat (limited to 'sysgen')
-rw-r--r--sysgen/sysgen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysgen/sysgen.go b/sysgen/sysgen.go
index da855d6a2..867561ad7 100644
--- a/sysgen/sysgen.go
+++ b/sysgen/sysgen.go
@@ -731,7 +731,7 @@ func decodeIntType(typ string) (uint64, bool, uint64) {
sz, _ = strconv.ParseInt(typ[3:], 10, 64)
}
- if bitfieldLen >= uint64(sz) {
+ if bitfieldLen > uint64(sz) {
failf("bitfield of size %v is too large for base type of size %v", bitfieldLen, sz/8)
}