# RuntimeWarning: overflow encountered in scalar multiply

- **ID:** `python/numpy-overflow-uint8`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Arithmetic on a fixed-width integer dtype (e.g., uint8) that overflows the dtype's range. NumPy wraps around silently and emits a RuntimeWarning.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   arr = arr.astype(np.int64) before arithmetic
   ```
2. **** (85% success)
   ```
   Use np.multiply(a, b, dtype=np.int64, casting='unsafe')
   ```

## Dead Ends

- **** — Silences warning but overflow still wraps to wrong values (95% fail)
- **** — Raises FloatingPointError but doesn't fix the underlying dtype (80% fail)
