Files
littlefs/scripts
Christopher Haster eeab0c41e8 scripts: Reverted to lh type preference in prettyasserts.py
This was flipped in b5e264b.

Infering the type from the right-hand side is tempting here, but the
right-hand side if often a constant, which gets a bit funky in C.

Consider:

  assert(lfs->cfg->read != NULL);

  gcc: warning: ISO C forbids initialization between function pointer
  and ‘void *’ [-Wpedantic]

  assert(err < 0ULL);

  gcc: warning: comparison of unsigned expression in ‘< 0’ is always
  false [-Wtype-limits]

Prefering the left-hand type should hopefully avoid these issues most of
the time.
2024-12-17 15:34:44 -06:00
..
2024-12-16 19:27:31 -06:00
2024-11-09 12:31:16 -06:00