Deprecated cast syntax in cbind example
[Thread Prev] | [Thread Next]
- Subject: Deprecated cast syntax in cbind example
- From: Ryan Roden-Corrent <ryan@xxxxxxxxxx>
- Date: Tue, 30 May 2017 22:06:02 -0400
- To: myrddin <myrddin-dev@xxxxxxxxxxxxxx>
The cbind example at http://git.eigenstate.org/ori/cbind-example.git was using the old-style cast and wouldn't compile. I've attached a patch fixing it. -Ryan
diff --git a/main.myr b/main.myr index f44333e..71923a9 100644 --- a/main.myr +++ b/main.myr @@ -11,6 +11,6 @@ const main = { h = "hello world from C\n\0" /* we need some casting to get pointers from slices. */ - libc.write(1, h[:h.len-2] castto(byte#), h.len) - libc.puts(h castto(byte#)) + libc.write(1, (h[:h.len-2] : byte#), h.len) + libc.puts((h : byte#)) }
Re: Deprecated cast syntax in cbind example | Ori Bernstein <ori@xxxxxxxxxxxxxx> |
- Prev by Date: Re: attempting to port to DFBSD
- Next by Date: Re: Deprecated cast syntax in cbind example
- Previous by thread: Re: attempting to port to DFBSD
- Next by thread: Re: Deprecated cast syntax in cbind example
- Index(es):