Skip to content

Commit d2951d4

Browse files
committed
mkNumericSumAsMul allow max length paths
1 parent 53c6715 commit d2951d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/GraphBLAS-sharp.Backend/Quotes/Arithmetic.fs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,13 @@ module ArithmeticOperations =
3838

3939
let inline private mkNumericSumAsMul zero =
4040
<@ fun (x: 't option) (y: 't option) ->
41-
let mutable res = zero
41+
let mutable res = None
4242

4343
match x, y with
44-
| Some f, Some s -> res <- f + s
44+
| Some f, Some s -> res <- Some(f + s)
4545
| _ -> ()
4646

47-
48-
if res = zero then None else Some res @>
47+
res @>
4948

5049
let inline private mkNumericMul zero =
5150
<@ fun (x: 't option) (y: 't option) ->

0 commit comments

Comments
 (0)