3 ms·
If anyone actually ever wrote that, pre-C23, then more likely than not they intended for i to be a double. Otherwise, why write 0.0 when 0 would suffice? It c
by munch117 3y ago
If anyone actually ever wrote that, pre-C23, then more likely than not they intended for i to be a double. Otherwise, why write 0.0 when 0 would suffice? It could go either way: Switching to C23 could cause a bug, or it could fix a bug. Or maybe fix one bug and cause another.
- jcelerier 3y agoI actually fixed this exact bug in a C library recently which used auto most likely because the author was used to using it in C++, it compiled and went through. Led to very spicy behaviour in C.