P0018 Arithmetic Panics
Arithmetic
cast to %s failed; value %lld is outside the valid range (%lld to %lld)
When this occurs
This error is triggered when: cast to %s failed; value %lld is outside the valid range (%lld to %lld)
Example error message
error[P0018]:
cast to %s failed; value %lld is outside the valid range (%lld to %lld)
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.