# Julia 1.14: new \`sizeof\` breaks packages

**URL:** <https://discourse.julialang.org/t/julia-1-14-new-sizeof-breaks-packages/143360>\
**Category:** General Usage\
**Created:** [November 30, 2026, 10:41pm UTC](https://discourse.julialang.org/t/julia-1-14-new-sizeof-breaks-packages/143360 "2026-11-30T22:41:27Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![matthias314](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@matthias314](https://discourse.julialang.org/u/matthias314)\
**Post date:** [December 1, 2026, 1:17pm UTC](https://discourse.julialang.org/t/julia-1-14-new-sizeof-breaks-packages/143360/3 "2026-12-01T13:17:01Z")

</div>

> [@hhaensel](#):
>
> There are more than 60 occurrences of `sizeof()` each of which needs special consideration.

With the redefinition

```julia-auto
if VERSION > v"1.14-"
    sizeof(::Type{T}) where T = Core.bitsizeof(T) ÷ 8
    sizeof(::T) where T = sizeof(T)
end

```

the problems related to `sizeof` seem to disappear. (One also has to import this redefined `sizeof` into the test suite.)

However, now other errors pop up, caused by missing methods for new arithmetic operators like `-%`.

---

_[View the full topic](https://discourse.julialang.org/t/julia-1-14-new-sizeof-breaks-packages/143360)._
