Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.c Subject: Re: "undefined behavior"? Date: Fri, 14 Jun 2024 22:32:12 +0100 Organization: A noiseless patient Spider Lines: 17 Message-ID: <877cerxlb7.fsf@bsb.me.uk> References: <666a095a$0$952$882e4bbb@reader.netnews.com> <8t3k6j5ikf5mvimvksv2t91gbt11ljdfgb@4ax.com> <666a18de$0$958$882e4bbb@reader.netnews.com> <87y1796bfn.fsf@nosuchdomain.example.com> <666a2a30$0$952$882e4bbb@reader.netnews.com> <87tthx65qu.fsf@nosuchdomain.example.com> <87o784xusf.fsf@bsb.me.uk> <87ikybycj6.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 14 Jun 2024 23:32:13 +0200 (CEST) Injection-Info: dont-email.me; posting-host="857528a8b109889a6f438cbb5df2d776"; logging-data="3217185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3cDQU+7Fda+JEv1D98yBz/Xh3yWEfTy4=" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:/YoLko/WxNYLSlEiqQ6vvYjh4yM= sha1:x6GlXoEY9jzOZ9u38JSE6+V/gdE= X-BSB-Auth: 1.7417a1812532da93fe48.20240614223212BST.877cerxlb7.fsf@bsb.me.uk Bytes: 1879 "Chris M. Thomasson" writes: > Fwiw, I remember doing a channel based hit map that stored an image using > RGBA but used floats. Each pixel would have a hit: > > struct hit > { > float m_color[4]; > }; > > It would take all of the hits and depending on what was going on during > iteration it would increment parts of hit::m_color[4]. Not in C you didn't! -- Ben.