OldMattyB @oldmattyb.bsky.social · 06/10/2026Always loved this one. The emotion she's giving is so much 110
OldMattyB @oldmattyb.bsky.social · 30/09/2026Well if that ain't a collection of bangers, I don't know what is! :) 110
OldMattyB @oldmattyb.bsky.social · 29/09/2026We have enough food to feed everyone; just not the leadership to make it possible 110
OldMattyB @oldmattyb.bsky.social · 28/09/2026*because I rarely carry cash it's easier to just take someone in and buy them whatever they want to eat 110
OldMattyB @oldmattyb.bsky.social · 28/09/2026Crazy they don't do gift cards. I've taken people in to fast food and take out places to get them a meal, but that doesn't scale well. Giving out gift cards seems like a better way, but it sucks that McD doesn't do them 110
OldMattyB @oldmattyb.bsky.social · 27/09/2026Smoked salmon nigiri at my favorite Bay View restaurant #HungrySumo #MKE 000
OldMattyB @oldmattyb.bsky.social · 26/09/2026I remember when this album came out. Drove 2 hours to the "big" record store to get a copy. Everyone was talking about in the store, really cool energy. 000
OldMattyB @oldmattyb.bsky.social · 24/09/2026Obligatory photo of Blarney Castle. Yes, I kissed the stone. No, don't tell me you pissed on it. 010
OldMattyB @oldmattyb.bsky.social · 24/09/2026definitely one of the very best of the power ballads. It just hits so hard. 110
OldMattyB @oldmattyb.bsky.social · 23/09/2026After 30 some years on the Green Bay Packers season ticket waiting list.... 010
OldMattyB @oldmattyb.bsky.social · 19/09/2026That is a cool machine, especially with the history intact! 110
OldMattyB @oldmattyb.bsky.social · 06/09/2026Actually, I think the power strip is a type E, I think I picked up the plug in France. Can't remember for sure. 010
OldMattyB @oldmattyb.bsky.social · 06/09/2026Gathering stuff for a trip across the pond. Most pluggy-in things being multivoltage, I've accumulated a collection of homemade forbidden cables. Yes, both have 300V rated insulation on the wires. Yes, I know Type B is not rated for 240V. Yes, I've used them extensively for years with no problems. 110
OldMattyB @oldmattyb.bsky.social · 06/09/2026Ladies and gentlemen, I present to you Alpine Blast: an according and a 5 string bass. They rock. #mke 000
OldMattyB @oldmattyb.bsky.social · 05/09/2026Milwaukee guy strongly voting for poutine. I was covered and a trip to Montreal. 000
OldMattyB @oldmattyb.bsky.social · 28/08/2026If you're a football fan, regardless of team affiliation, you should tailgate at Lambeau at least once 030
OldMattyB @oldmattyb.bsky.social · 27/08/2026I would cast in the if() statement. It’s hard to say what the optimization will do. I was going to check godbolt.org, but I’m having some issues getting it to work on a mobile device. I’ll be away from a computer for the next week, so 🤷♂️ 110
Reposted by OldMattyBWuTangIsForTheChildren @wutangforchildren.bsky.social · 26/08/2026Jack White is already paying tribute to Dolly Parton with a cover of Jolene in London 13079741575
OldMattyB @oldmattyb.bsky.social · 26/08/2026Working on my Altair 8800 file manager in assembly code. Moving along nicely :) Source is at github.com/mbrugman67/s... #retrocomputing youtu.be/VWdoinQcBtQ?...youtu.beSTEM file manager example 1YouTube video by Matthew Brugman 010
OldMattyB @oldmattyb.bsky.social · 26/08/2026but uint8_t thing; ... uint8_t thing2 = thing + 1U; if (thing2 == 0xff) { would be fine. Another good thing to read about in the spec is "Sequence Points" :) Gosh, this got longer than I expected - sorry for that! (P.S. The cats say "thank you!!") 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026Add a suffix to your fixed values. For example, "var + 1U" tells the compiler that the "1" is an unsigned value. Otherwise, it assumes signed. When using variable types other than int, you might also need to do more casting than you'd expect. uint8_t thing; if ((uint8_t)(thing + 1U) == 0xff) { 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026To get back to your original issue, I usually make sure to use inttypes to specify variable sizes when it's important; e.g., uint8_t, int16_t. That also makes it clear to other readers of your code that you are being intentional about declaring the size of this variable. 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026The C standard exists so that compiler makers produce a tool that is consistent across platforms in a predictable way. Users of compilers, like us, can use the standard to better understand how the language is expected to work. 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026Another example are signed integers. ARM/x86 developers expect signed integers to be 2's complement binary, but that's not the only way to represent them. Therefore the standard states bit shifts on signed integers is "Undefined Behavior", while bit shifting unsigned integers is fine. 120
OldMattyB @oldmattyb.bsky.social · 26/08/2026It's not something a desktop/front end/back end/etc. developer thinks about, but there exists a wide variety of architectures out there! Like the PDP-8 (yes, this is old), which operated on 12-bit words. The standard makes sure the language is portable across every platform that has a compiler. 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026The only important thing is that the size of an int is what the hardware/CPU likes to work with. That's all platform/implementation specific. So, the reason for integer promotion is so arithmetic is done in the most efficient "machine" sized units of data, if that makes sense. 110
OldMattyB @oldmattyb.bsky.social · 26/08/2026You have to go back in the history of C a bit for it to start to make sense. C is meant to be portable and platform agnostic. That means a lot of different hardware architectures. If you look at the spec, you'll see that nowhere does it specify the actual bit size of int, short, long, bool, etc. 110
OldMattyB @oldmattyb.bsky.social · 25/08/2026To be fair, any compiler that says it's compliant to the C standard must do the same thing. Promotion also applies to the C++ standard; but for things like this that fall into the category of "base language", I start with the C standard. 110
OldMattyB @oldmattyb.bsky.social · 25/08/2026Section 6.3.1.1 talks about integer ranks for arithmetic, and how integers get promoted. Basically, if the variable size is equal to or less than the size of a signed int, it is promoted to a signed int for the math operation. That's the rule in the C specification that GCC is following. 110
OldMattyB @oldmattyb.bsky.social · 25/08/2026I always suggest looking at the c standard, especially Undefined Behavior. It’s good stuff. Just want to add that I'm not gatekeeping or stroking my grey beard; I'm sincerely trying to help based on my experience learning the same things the hard way 😊 www.open-std.org/jtc1/sc22/wg...open-std.org 110
OldMattyB @oldmattyb.bsky.social · 25/08/2026I learned this same lesson the hard way doing embedded development on 8-bit microcontrollers. XOR on a uint8_t gave me results I didn't expect. Historically the C standard calls for integer promotion; GCC is just following the C standard. One of those lessons you learn once & remember forever 🤷♂️ 110
OldMattyB @oldmattyb.bsky.social · 21/08/2026I picked up a new emotional support cheese at the local farmer's market. 20 year yellow cheddar. Trying to think of a special occasion to break it out.... 010
OldMattyB @oldmattyb.bsky.social · 14/08/2026Smoke Shack in #MKE, great barbecue and fun environment in Milwaukee's Third Ward. 000