---
title: "SD0005: bitwise op requires a u32/i32 left operand"
description: "SD0005, an error code of the TypeShade compiler. bitwise op requires a u32/i32 left operand"
url: https://typeshade.dev/reference/errors/sd0005/
language: en
---

# `SD0005`

Core code

bitwise op requires a `u32`/`i32` left operand

No `"use typeshade"` program on this site raises this code, so the page has no example. The [`fn()`](https://typeshade.dev/api/fn/) builder builds the IR directly and reaches the check at the lines under Source.

The registry text and every compiler message on these pages are the compiler's own English.

## How to fix it

The registry's hint: cast the operand with toU32()/toI32() before a bitwise op

## See also

- [Types](https://typeshade.dev/guide/language/types/)
- [`TypeShadeError`](https://typeshade.dev/api/typeshadeerror/)
- [Error codes](https://typeshade.dev/reference/errors/)

## Source

Where the compiler raises this code at commit af54ddad5, one line per file:

- [`src/core/ir/node.ts:424`](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L424)
