Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Dec 11, 2024
1 parent 49d4e22 commit 1800e0c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ loc targetFile = |memory://test-tmp/test-<"<uuidi()>">.json|;

bool writeRead(type[&T] returnType, &T dt) {
dt = visit (dt) {
// reals must fit in double
case real r => fitDouble(r)
// integers must not overflow
case int i => i % floor(pow(2, 10)) when abs(i) > pow(2, 10)
}

Expand Down

0 comments on commit 1800e0c

Please sign in to comment.