mirror of
https://github.com/boostorg/regex.git
synced 2025-07-24 01:27:36 +02:00
Fix numerous VC-10 compiler warnings.
Rewrite ICU configuration to use the new Boost.Build configuration logic. [SVN r61893]
This commit is contained in:
@ -45,11 +45,11 @@ int main()
|
||||
char nbuf[256];
|
||||
int i;
|
||||
result = regcomp(&re, expression, REG_AWK);
|
||||
if(result > REG_NOERROR)
|
||||
if(result > (int)REG_NOERROR)
|
||||
{
|
||||
regerror(result, &re, buf, sizeof(buf));
|
||||
for(i = 0; i < 256; ++i)
|
||||
nbuf[i] = buf[i];
|
||||
nbuf[i] = (char)(buf[i]);
|
||||
printf(nbuf);
|
||||
return result;
|
||||
}
|
||||
@ -61,11 +61,11 @@ int main()
|
||||
matches[0].rm_so = 0;
|
||||
matches[0].rm_eo = wcslen(text);
|
||||
result = regexec(&re, text, 1, matches, REG_NOTBOL | REG_NOTEOL | REG_STARTEND);
|
||||
if(result > REG_NOERROR)
|
||||
if(result > (int)REG_NOERROR)
|
||||
{
|
||||
regerror(result, &re, buf, sizeof(buf));
|
||||
for(i = 0; i < 256; ++i)
|
||||
nbuf[i] = buf[i];
|
||||
nbuf[i] = (char)(buf[i]);
|
||||
printf(nbuf);
|
||||
regfree(&re);
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user