Use reinterpret-casting in yxml_setchar()

This avoids a memcpy() when the compiler doesn't optimize it. I
initially avoided doing this out of fear for triggering UB and causing
optimizing compilers to optimize the code away, but I believe this is
actually safe when the types involved are (unsigned) chars.
2 files changed
tree: e49bacf5159e6bc275af25bcb790467305e12cf8
  1. bench/
  2. test/
  3. .gitignore
  4. COPYING
  5. Makefile
  6. yxml-gen.pl
  7. yxml-states
  8. yxml.c
  9. yxml.c.in
  10. yxml.h
  11. yxml.md