Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
July 07, 2016 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schveiguy@yahoo.com --- Comment #1 from Steven Schveighoffer <schveiguy@yahoo.com> --- I looked at the errors: /Users/steves/.dvm/compilers/dmd-2.071.1/osx/bin/../../src/phobos/std/range/package.d(4751): Error: cannot implicitly convert expression (cast(int)pastLast - 1) of type int to ushort /Users/steves/.dvm/compilers/dmd-2.071.1/osx/bin/../../src/phobos/std/range/package.d(4756): Error: cannot implicitly convert expression (cast(int)pastLast + 1) of type int to ushort /Users/steves/.dvm/compilers/dmd-2.071.1/osx/bin/../../src/phobos/std/range/package.d(4773): Error: cannot implicitly convert expression (cast(int)this.pastLast - cast(int)this.step) of type int to inout(ushort) We are just adding/subtracting 1 or step in each of these. Just cast to the correct type, should be sufficient. Alternatively, you can use += or -= instead. May need to `static if` this fix for only builtin types, as custom types probably already handle the operations correctly, and we don't want to mess with that. -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrei@erdani.com --- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> --- https://github.com/dlang/phobos/pull/5391 -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Severity|enhancement |normal -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #3 from Steven Schveighoffer <schveiguy@yahoo.com> --- Not fixed until the PR is merged. dlang-bot will do it automatically. -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 --- Comment #4 from Andrei Alexandrescu <andrei@erdani.com> --- (In reply to Steven Schveighoffer from comment #3) > Not fixed until the PR is merged. dlang-bot will do it automatically. Cool, thx. -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Vladimir Panteleev <thecybershadow@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull CC| |thecybershadow@gmail.com -- |
May 14, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 Steven Schveighoffer <schveiguy@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |timothee.cour2@gmail.com --- Comment #5 from Steven Schveighoffer <schveiguy@yahoo.com> --- *** Issue 15717 has been marked as a duplicate of this issue. *** -- |
May 15, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 --- Comment #6 from github-bugzilla@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6ff81f14057530484249dd4055e19c996b0485a7 Fix issue 16246 - cannot call iota with 3 [u]bytes or 3 [u]shorts https://github.com/dlang/phobos/commit/79edc62e8ff6ed5292fbc40e09cd944fb436740a Merge pull request #5391 from andralex/16246 Fix issue 16246 - cannot call iota with 3 [u]bytes or 3 [u]shorts merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com> -- |
June 17, 2017 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 --- Comment #7 from github-bugzilla@puremagic.com --- Commits pushed to stable at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6ff81f14057530484249dd4055e19c996b0485a7 Fix issue 16246 - cannot call iota with 3 [u]bytes or 3 [u]shorts https://github.com/dlang/phobos/commit/79edc62e8ff6ed5292fbc40e09cd944fb436740a Merge pull request #5391 from andralex/16246 -- |
January 05, 2018 [Issue 16246] cannot call iota with 3 [u]bytes or 3 [u]shorts | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=16246 --- Comment #8 from github-bugzilla@puremagic.com --- Commits pushed to dmd-cxx at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/6ff81f14057530484249dd4055e19c996b0485a7 Fix issue 16246 - cannot call iota with 3 [u]bytes or 3 [u]shorts https://github.com/dlang/phobos/commit/79edc62e8ff6ed5292fbc40e09cd944fb436740a Merge pull request #5391 from andralex/16246 -- |
Copyright © 1999-2021 by the D Language Foundation