diff options
Diffstat (limited to 'stdlib/socket.tl')
-rw-r--r-- | stdlib/socket.tl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/stdlib/socket.tl b/stdlib/socket.tl index eac123be..aeb33dbe 100644 --- a/stdlib/socket.tl +++ b/stdlib/socket.tl @@ -102,11 +102,11 @@ (defun sys:str-inaddr-net-impl (addr wextra : weff) (let ((mask addr)) - (set mask (logior mask (ash mask 1))) - (set mask (logior mask (ash mask 2))) - (set mask (logior mask (ash mask 4))) - (set mask (logior mask (ash mask 8))) - (set mask (logior mask (ash mask 16))) + (set-mask mask (ash mask 1)) + (set-mask mask (ash mask 2)) + (set-mask mask (ash mask 4)) + (set-mask mask (ash mask 8)) + (set-mask mask (ash mask 16)) (let* ((w (- 32 (width (lognot mask 32)))) (d (logand addr #xFF)) (c (logand (ash addr -8) #xFF)) @@ -130,13 +130,13 @@ (= (ash addr -32) #xFFFF)) `::ffff:@(sys:str-inaddr-net-impl (logtrunc addr 32) 96 width)` (let ((mask addr)) - (set mask (logior mask (ash mask 1))) - (set mask (logior mask (ash mask 2))) - (set mask (logior mask (ash mask 4))) - (set mask (logior mask (ash mask 8))) - (set mask (logior mask (ash mask 16))) - (set mask (logior mask (ash mask 32))) - (set mask (logior mask (ash mask 64))) + (set-mask mask (ash mask 1)) + (set-mask mask (ash mask 2)) + (set-mask mask (ash mask 4)) + (set-mask mask (ash mask 8)) + (set-mask mask (ash mask 16)) + (set-mask mask (ash mask 32)) + (set-mask mask (ash mask 64)) (let* ((w (- 128 (width (lognot mask 128)))) (pieces (let ((count 8)) (nexpand-left (lambda (val) |