Skip to content

Commit

Permalink
deploy: 4ac0e38
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed May 23, 2024
1 parent 52bf349 commit d71cc94
Show file tree
Hide file tree
Showing 3 changed files with 216 additions and 216 deletions.
424 changes: 212 additions & 212 deletions js/repl/bundle.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/repl/fable-library-js/Range.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export function rangeUInt64(start, step, stop) {
return integralRangeStep(start, step, stop, 0n, (x, y) => toUInt64(op_Addition(x, y)));
}
export function rangeChar(start, stop) {
const intStop = stop.charCodeAt(0) | 0;
const intStop = ~~stop.charCodeAt(0) | 0;
return delay(() => unfold((c) => {
if (c <= intStop) {
return [String.fromCharCode(c), c + 1];
}
else {
return undefined;
}
}, start.charCodeAt(0)));
}, ~~start.charCodeAt(0)));
}
4 changes: 2 additions & 2 deletions js/repl/fable-library-js/TimeSpan.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { comparePrimitives, padLeftAndRightWithZeros, padWithZeros } from "./Util.js";
import { toInt64 } from "./BigInt.js";
import { toInt64, fromFloat64 } from "./BigInt.js";
/**
* Calls:
* - `Math.ceil` if the `value` is **negative**
Expand Down Expand Up @@ -55,7 +55,7 @@ export function milliseconds(ts) {
return signedRound(ts % 1000);
}
export function ticks(ts) {
return toInt64(BigInt(ts) * 10000n);
return toInt64(fromFloat64(ts * 10000));
}
export function totalDays(ts) {
return ts / 86400000;
Expand Down

0 comments on commit d71cc94

Please sign in to comment.