summaryrefslogtreecommitdiff
path: root/libstd
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-07 10:30:03 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-11 18:38:30 -0700
commit1ad429cfd3ae87764bcb7ba95d44a79eb4ce3dbf (patch)
tree5c6cdf31950ab643da5c4d39482262f476635ca7 /libstd
parentd5f2f88064356c362bad8c63153d7543c0141bab (diff)
downloadmc-1ad429cfd3ae87764bcb7ba95d44a79eb4ce3dbf.tar.gz
Actually duplicate the bits.
Diffstat (limited to 'libstd')
-rw-r--r--libstd/bitset.myr5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstd/bitset.myr b/libstd/bitset.myr
index 96d7ce0..7843c7d 100644
--- a/libstd/bitset.myr
+++ b/libstd/bitset.myr
@@ -1,6 +1,9 @@
use "alloc.use"
+use "die.use"
use "extremum.use"
use "mk.use"
+use "slcp.use"
+use "sldup.use"
use "slfill.use"
use "types.use"
@@ -34,7 +37,7 @@ const mkbs = {
}
const bsdup = {bs
- -> mk([.bits=bs.bits])
+ -> mk([.bits=sldup(bs.bits)])
}
const bsfree = {bs