Changeset 1236 for trunk/gsdl/lib


Ignore:
Timestamp:
2000-06-23T17:03:29+12:00 (24 years ago)
Author:
nzdl
Message:

fixed a couple of compiler warnings created by the new encoding stuff

Location:
trunk/gsdl/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/lib/gsdlunicode.cpp

    r1233 r1236  
    2828/*
    2929   $Log$
     30   Revision 1.14  2000/06/23 05:03:29  nzdl
     31   fixed a couple of compiler warnings created by the new encoding stuff
     32
    3033   Revision 1.13  2000/06/23 03:21:38  sjboddie
    3134   Created converter classes for simple 8 bit encodings that use a
     
    608611    char *from = parts[0].getcstr();
    609612    char *to = parts[1].getcstr();
    610     unsigned short f = 0, t = 0;
     613    unsigned int f = 0, t = 0;
    611614    sscanf (from, "%i", &f);
    612615    sscanf (to, "%i", &t);
     
    614617    delete to;
    615618   
    616     if (in) mapping[f] = t;
    617     else mapping[t] = f;
     619    if (in) mapping[(unsigned short)f] = (unsigned short)t;
     620    else mapping[(unsigned short)t] = (unsigned short)f;
    618621  }
    619622
  • trunk/gsdl/lib/gsdlunicode.h

    r1233 r1236  
    246246class simplemapinconvertclass : public inconvertclass {
    247247public:
     248  virtual ~simplemapinconvertclass () {}
     249
    248250  void convert (text_t &output, status_t &status);
    249251
     
    256258class simplemapoutconvertclass : public rzwsoutconvertclass {
    257259public:
     260  virtual ~simplemapoutconvertclass () {}
     261
    258262  void convert (char *output, size_t maxlen,
    259263        size_t &len, status_t &status);
Note: See TracChangeset for help on using the changeset viewer.