$(CARGO_TARGET_DIR)/release/server:
$(CARGO) build --release
-templates/script.js: $(TS_SRC_FILES) tsconfig.json
- tsc --outfile $@.tmp $(TS_SRC_FILES) 2>&1 \
+templates/script.js: tsconfig.json $(TS_SRC_FILES)
+ sed <tsconfig.json >.tsconfig.json \
+ '/^ *"files":/ s#:.*#:[$(foreach f,$(TS_SRC_FILES),"$f",)]#'
+ tsc --outfile $@.tmp -p .tsconfig.json 2>&1 \
| perl -pe 's/\((\d+),(\d+)\):/:$$1:$$2:/'; \
test "$${PIPESTATUS[*]}" = "0 0"
mv -f $@.tmp $@
export function unpack(p: Packed): Unpacked {
let head = p.match(UNPACK_HEAD_RE);
+ if (head == null) throw('unpack Bigfloat '+p);
UNPACK_LIMB_RE.lastIndex = 0;
let limbs = [];
let m;
let newlimb = ms_limb_from_sign(v);
let adj = 0;
while (i < 0) {
- this.limbs.unshift(newlimb);
- this.exponent++;
+ v.limbs.unshift(newlimb);
+ v.exponent++;
i++;
adj++;
}
let ib = bv.exponent - e;
if (ia >= av.limbs.length && ib >= bv.limbs.length) {
// Oh actually these numbers are equal!
- return function(){ return this.pack(); }
+ return function(){ return pack(av); }
}
let la = limb_lookup(av,ia);
let lb = limb_lookup(bv,ib);
let current = clone(av);
let i = ia + extend_left_so_index_valid(current, ia);
- let step; // floating!
+ let step : number; // actual floating point!
if (avail > count+1) {
step = avail / (count+1);
} else {
"dom"
],
"strict": true,
- "target": "es2015"
- }
+ "target": "es2015",
+ "removeComments": false,
+ },
+ "files": "--substituted by Makefile--",
}