Ignore:
Timestamp:
01/08/07 07:27:08 (8 years ago)
Author:
xi
Message:

Fix a bug in the emitter introduced while fixing warnings for VC6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/src/emitter.c

    r239 r241  
    20272027            unsigned int width; 
    20282028            unsigned int value; 
    2029             size_t k; 
     2029            int k; 
    20302030 
    20312031            octet = string.pointer[0]; 
     
    20382038                    (octet & 0xF0) == 0xE0 ? octet & 0x0F : 
    20392039                    (octet & 0xF8) == 0xF0 ? octet & 0x07 : 0; 
    2040             for (k = 1; k < width; k ++) { 
     2040            for (k = 1; k < (int)width; k ++) { 
    20412041                octet = string.pointer[k]; 
    20422042                value = (value << 6) + (octet & 0x3F); 
Note: See TracChangeset for help on using the changeset viewer.