diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-14 16:23:39 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-14 16:23:39 -0800 |
| commit | 7e66b7ae6b00a2e1652db32f01f0bf480508ef05 (patch) | |
| tree | f09689493fd820544b4cd94d4b1e941d84a24b4b /chapter31/src/main/smp/sys | |
| parent | 3d0f3f38d9d8345b6508b3289dc94b0500c53d9e (diff) | |
| download | Simple-7e66b7ae6b00a2e1652db32f01f0bf480508ef05.tar.gz Simple-7e66b7ae6b00a2e1652db32f01f0bf480508ef05.zip | |
CLeanup Breakout
Fix a half-dozen compiler bugs; various kinds of forward refs and readable types.
Allow read-only self-types; and read-only methods.
Anonymous inner functions are treated as methods.
Better error messages in many places.
Diffstat (limited to 'chapter31/src/main/smp/sys')
| -rw-r--r-- | chapter31/src/main/smp/sys/draw/Canvas.smp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter31/src/main/smp/sys/draw/Canvas.smp b/chapter31/src/main/smp/sys/draw/Canvas.smp index 2fbcf6ea..9ba3514a 100644 --- a/chapter31/src/main/smp/sys/draw/Canvas.smp +++ b/chapter31/src/main/smp/sys/draw/Canvas.smp @@ -3,7 +3,7 @@ struct Canvas { u32 height; u32[] pixels; - new Canvas = { int w, int h -> + new Canvas = { u32 w, u32 h -> i64 count = w; count *= h; if( w <= 0 || h <= 0 || count > sys.integer.MAX_I32 ) libc._exit(1); |
