roc/crates
Ayaz Hafiz a81d4d4be2
Allow any numeric range to become a float
Currently things like `1 / 200` lead to a miscompilation because we type
`200` (and as a result, both `1` and the division result) as a ranged
number with width >= U8. During mono that forces the number to become an
`I64` because our logic was that a ranged number can only become a float
if it's at least as wide as an I8. But this is incorrect; as long as the
type is wrapped in `Frac` constructor and it's a ranged number (and not
a ranged int), it should become a fractional type.

```
» 1 / 200

0.005 : Float *
```

Closes #4047
2022-09-16 10:05:43 -05:00
..
ast Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00
cli Change example to be a calculator 2022-09-14 12:06:35 -05:00
cli_utils Rephrase "cross-platform" to "cross-target" 2022-09-11 10:25:02 -06:00
code_markup Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00
compiler Allow any numeric range to become a float 2022-09-16 10:05:43 -05:00
docs Merge pull request #3971 from roc-lang/dependabot/cargo/bumpalo-3.11.0 2022-09-13 21:00:00 +02:00
docs_cli Bump clap from 3.2.18 to 3.2.20 2022-09-12 10:33:19 +00:00
editor Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00
error_macros Rephrase CPU-related "platform"/"host" to "target"/"your machine" 2022-09-11 10:25:02 -06:00
glue Merge pull request #3989 from roc-lang/fix-glue-segfault 2022-09-13 13:47:51 -07:00
highlight changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
linker Merge pull request #3971 from roc-lang/dependabot/cargo/bumpalo-3.11.0 2022-09-13 21:00:00 +02:00
repl_cli Bump bumpalo from 3.10.0 to 3.11.0 2022-09-12 21:08:56 +00:00
repl_eval Unwrap recursion var 2022-09-14 11:26:49 -05:00
repl_expect Copy list values from the correct offset when reporting expects 2022-09-14 14:28:56 -05:00
repl_test Rephrase CPU-related "platform"/"host" to "target"/"your machine" 2022-09-11 10:25:02 -06:00
repl_wasm Merge pull request #4029 from roc-lang/disable-web-repl-until-loaded 2022-09-14 05:36:31 +01:00
reporting Span body of last branch in exhaustiveness checking 2022-09-13 16:24:59 -04:00
roc_std replace unsound MaybeUninit deref with ptr::copy 2022-08-29 17:00:03 +02:00
test_utils Bump pretty_assertions from 1.2.1 to 1.3.0 2022-09-12 05:28:00 +00:00
tracing Remove old file if it was present 2022-08-23 15:42:54 -05:00
utils changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
vendor s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
wasi-libc-sys s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00