# BoundsError in CartesianIndices on 32-bit Windows

**URL:** <https://discourse.julialang.org/t/boundserror-in-cartesianindices-on-32-bit-windows/112777>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 10, 2024, 2:31pm UTC](https://discourse.julialang.org/t/boundserror-in-cartesianindices-on-32-bit-windows/112777 "2024-04-10T14:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [April 10, 2024, 3:31pm UTC](https://discourse.julialang.org/t/boundserror-in-cartesianindices-on-32-bit-windows/112777/4 "2024-04-10T15:31:00Z")

</div>

Ah, of course, the non-sensical bounds error is because, when you use linear indexing, it’ll check the index against the length. And the length overflows to negative, so _everything_ is going to be OOB.

The crux of it is that arrays (even sparse ones) with more than 2^31 elements are going to be troublesome on 32-bit systems.

---

_[View the full topic](https://discourse.julialang.org/t/boundserror-in-cartesianindices-on-32-bit-windows/112777)._
