File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
typed-racket-lib/typed-racket/rep Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
;;
12
12
;; - - Details - -
13
13
;;
14
- ;; Type masks are represented with a simple 31 -bit fixnum.
14
+ ;; Type masks are represented with a simple 30 -bit fixnum.
15
15
;;
16
16
;; If a bit flag in a Type's bitmask is set to 1, it means the Type
17
17
;; _may_ overlap with the values described by that bit flag.
51
51
;; type mask predicate
52
52
(define-syntax type-mask? (make-rename-transformer #'fixnum? ))
53
53
54
- ;; define the max size of type masks
54
+ ;; define the max size of type masks -- if we limit the size to
55
+ ;; 30 we are guaranteed to be a fixnum on 32 and 64 bit machines.
56
+ ;; (30 is the max number of bits available in a 2's complement
57
+ ;; tagged integer on a 32-bit machine)
55
58
(module const racket/base
56
59
(provide max-mask-size)
57
- (define max-mask-size 31 ))
60
+ (define max-mask-size 30 ))
58
61
(require 'const (for-syntax 'const ))
59
62
60
63
You can’t perform that action at this time.
0 commit comments