Changeset 63:daeffdfabd8a in rrlib_logging


Ignore:
Timestamp:
29.08.2011 18:02:57 (9 years ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

small fix to remove warning on 64 bit systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tLogDomain.cpp

    r51 r63  
    176176{ 
    177177  char name_string_buffer[128]; 
    178   snprintf(name_string_buffer, sizeof(name_string_buffer), "%-*s ", (tLogDomainRegistry::GetInstance()->GetPadPrefixColumns() ? tLogDomainRegistry::GetInstance()->GetMaxDomainNameLength() : 0), this->GetName().c_str()); 
     178  snprintf(name_string_buffer, sizeof(name_string_buffer), "%-*s ", static_cast<int>((tLogDomainRegistry::GetInstance()->GetPadPrefixColumns() ? tLogDomainRegistry::GetInstance()->GetMaxDomainNameLength() : 0)), this->GetName().c_str()); 
    179179  return name_string_buffer; 
    180180} 
Note: See TracChangeset for help on using the changeset viewer.