Changeset 0b0485ae in rtems


Ignore:
Timestamp:
Dec 1, 2009, 10:12:55 AM (9 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
1eb97ad
Parents:
6f70c07
Message:

Fixed usage of va_arg().

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r6f70c07 r0b0485ae  
     12009-12-01      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libcsupport/src/vprintk.c: Fixed usage of va_arg().
     4
    152009-11-30      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cpukit/libcsupport/src/vprintk.c

    r6f70c07 r0b0485ae  
    8181    }
    8282    if ( c == 'c' ) {
    83       char chr = va_arg(ap, char);
     83      /* need a cast here since va_arg() only takes fully promoted types */
     84      char chr = (char) va_arg(ap, int);
    8485      BSP_output_char(chr);
    8586      continue;
Note: See TracChangeset for help on using the changeset viewer.