Changeset 211 for cpp/frams


Ignore:
Timestamp:
04/03/14 21:47:20 (11 years ago)
Author:
Maciej Komosinski
Message:

Fixed cast compilation warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/virtfile/virtfile.h

    r206 r211  
    2626virtual int Vwrite(const void *ptr, size_t size, size_t nmemb)=0;
    2727virtual int Veof()=0;
    28 virtual int Vputc(int c) {unsigned char data=c; return (Vwrite(&data,1,1)==1)?data:EOF;}
     28virtual int Vputc(int c) {unsigned char data=(unsigned char)c; return (Vwrite(&data,1,1)==1)?data:EOF;}
    2929virtual int Vputs(const char *s)=0;
    3030virtual int Vgetc() {unsigned char data; if (Vread(&data,1,1)==1) return data; else return EOF;}
Note: See TracChangeset for help on using the changeset viewer.