Hi all,
I came across the following piece of code:
String a;
xub_StrLen n = 0;
n += a.Len();
This breaks on Windows (due to -werror). Because of the warning:
warning C4244: '+=' : conversion from 'int' to 'USHORT', possible loss
of data (in the last line of the fragment)
[...]
Just checked:
unsigned short foo() { return 42; }
void bar()
{
unsigned short n = 0;
n += foo();
}
Also checked:
short a = 1;
short b = 2;
a += b; // warning: conversion from int
(Warning: signed short, unsigned short. No warning: signed int, unsigned
int)
This also breaks due to the warning. Hm, looks indeed like there was no
operator += for short but only for int.
-Bjoern
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]