Browse Source

* src/graphics.c:

+ Fix strict aliasing rules breakage.
tags/v0.99.beta14
Sam Hocevar sam 20 years ago
parent
commit
a2bc76b696
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/graphics.c

+ 5
- 1
src/graphics.c View File

@@ -472,7 +472,11 @@ void caca_putstr(int x, int y, char const *s)
SLsmg_write_string(_caca_empty_line + _caca_width - len);
else
#endif
SLsmg_write_string((char *)(intptr_t)s);
{
union { char *ch; const char *constch; } u;
u.constch = s;
SLsmg_write_string(u.ch);
}
break;
#endif
#if defined(USE_NCURSES)


Loading…
Cancel
Save