Changeset 4867 for libcaca


Ignore:
Timestamp:
Aug 11, 2013, 10:32:59 PM (5 years ago)
Author:
Sam Hocevar
Message:

attr: fix a very old bug in caca_attr_to_ansi_fg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/attr.c

    r4859 r4867  
    327327uint8_t caca_attr_to_ansi_fg(uint32_t attr)
    328328{
    329     return nearest_ansi(((uint16_t)attr >> 4) & 0x3fff);
     329    return nearest_ansi((attr >> 4) & 0x3fff);
    330330}
    331331
Note: See TracChangeset for help on using the changeset viewer.