Mitchell Hashimoto
647f5adf55
terminal/formatter: safely cast discarding.count to usize
...
The Discarding writer count field is u64, but several call sites
pass it where a usize is expected. On wasm32-freestanding, usize is
32-bit, so this caused compilation errors.
Use std.math.cast instead of a bare @intCast so that overflow is
handled gracefully, returning WriteFailed rather than triggering
safety-checked undefined behavior at runtime.
2026-03-14 15:29:53 -07:00
..
2026-03-11 20:46:59 -07:00
2026-03-13 13:56:14 -07:00
2026-03-05 19:55:50 -08:00
2026-03-11 02:23:12 -05:00
2026-03-11 20:46:59 -07:00
2025-10-03 07:10:43 -07:00
2026-02-17 20:35:25 -08:00
2026-02-17 11:35:33 -05:00
2026-03-13 13:56:14 -07:00
2026-03-11 09:25:08 -07:00
2026-03-13 13:56:14 -07:00
2026-03-14 14:21:00 -07:00
2026-03-12 16:27:54 -04:00
2026-03-13 13:56:14 -07:00
2026-03-11 12:46:14 -04:00
2025-11-27 13:37:53 -08:00
2025-10-03 18:52:26 +02:00
2025-12-10 22:31:27 -06:00
2026-03-14 15:29:53 -07:00
2026-03-03 09:48:48 +01:00
2026-03-13 13:56:14 -07:00
2026-01-27 09:44:55 -05:00
2026-02-01 14:32:37 -08:00
2025-11-27 13:37:53 -08:00
2025-11-27 13:37:53 -08:00
2025-07-09 15:06:24 -07:00
2026-03-04 22:35:58 -06:00
2026-03-10 14:33:40 -07:00
2025-11-17 12:13:56 -07:00
2025-06-25 16:27:23 -04:00
2025-12-15 11:54:36 -08:00
2025-10-03 07:10:43 -07:00
2026-01-08 10:22:56 -08:00
2026-03-14 14:59:41 -07:00
2025-11-27 13:37:53 -08:00
2025-10-03 13:32:15 -07:00
2025-11-17 12:13:56 -07:00
2025-11-27 13:37:53 -08:00
2026-01-21 09:39:02 -08:00
2024-08-16 14:35:10 -07:00
2025-07-09 15:06:24 -07:00
2022-08-18 11:42:32 -07:00
2025-10-03 07:10:43 -07:00
2025-12-08 13:19:16 +08:00
2026-02-27 10:13:03 -06:00
2025-11-27 13:37:53 -08:00
2026-03-11 09:25:08 -07:00
2025-11-26 08:50:04 -08:00
2026-01-21 15:30:49 -08:00