Show
Ignore:
Timestamp:
05/05/08 13:00:01 (8 months ago)
Author:
ludovic.rousseau
Message:

Use size_t instead of int when needed, plus some other minor changes

Patch bug.1 included in Ticket #176

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/libopensc/muscle.c

    r3148 r3510  
    317317{ 
    318318        assert(buffer); 
    319         assert(bufferLength >= pinLength); 
     319        assert(bufferLength >= (size_t)pinLength); 
    320320        assert(pinLength <= MSC_MAX_PIN_LENGTH); 
    321321 
     
    361361{ 
    362362        assert(buffer); 
    363         assert(bufferLength >= pukLength); 
     363        assert(bufferLength >= (size_t)pukLength); 
    364364        assert(pukLength <= MSC_MAX_PIN_LENGTH); 
    365365 
     
    407407        assert(newPinLength <= MSC_MAX_PIN_LENGTH); 
    408408        assert(buffer); 
    409         assert(bufferLength >= pinLength + newPinLength + 2); 
     409        assert(bufferLength >= pinLength + newPinLength + 2UL); 
    410410 
    411411        truncatePinNulls(pinValue, &pinLength); 
     
    807807                        size_t outputDataLength) 
    808808{ 
    809         int left = dataLength; 
     809        size_t left = dataLength; 
    810810        const u8* inPtr = data; 
    811811        u8* outPtr = outputData;