From 10d9d8bc378dbab66cc35588a2e3fb9e44dc8f81 Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Thu, 21 Apr 2022 17:30:39 -0400 Subject: [PATCH] Fix warning 41 --- packages/squiggle-lang/bsconfig.json | 2 +- packages/squiggle-lang/src/rescript/OldInterpreter/DistPlus.res | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/bsconfig.json b/packages/squiggle-lang/bsconfig.json index 4ff06737..f934c3d5 100644 --- a/packages/squiggle-lang/bsconfig.json +++ b/packages/squiggle-lang/bsconfig.json @@ -37,7 +37,7 @@ }, "refmt": 3, "warnings": { - "number": "+A-42-48-9-30-4-102-20-27-41" + "number": "+A-42-48-9-30-4-102-20-27" }, "ppx-flags": [ ["../../node_modules/bisect_ppx/ppx", "--exclude-files", ".*_test\\.res$$"] diff --git a/packages/squiggle-lang/src/rescript/OldInterpreter/DistPlus.res b/packages/squiggle-lang/src/rescript/OldInterpreter/DistPlus.res index f3297703..c3e8a487 100644 --- a/packages/squiggle-lang/src/rescript/OldInterpreter/DistPlus.res +++ b/packages/squiggle-lang/src/rescript/OldInterpreter/DistPlus.res @@ -53,7 +53,7 @@ module T = Distributions.Dist({ // This bit is kind of awkward, could probably use rethinking. let integral = (t: t) => updateShape(Continuous(t.integralCache), t) - let updateIntegralCache = (integralCache: option, t) => + let updateIntegralCache = (integralCache: option, t: t) => update(~integralCache=E.O.default(t.integralCache, integralCache), t) let downsample = (i, t): t => updateShape(t |> toPointSetDist |> PointSetDist.T.downsample(i), t)