DMD 1.010 release
    Walter Bright 
    newshound at digitalmars.com
       
    Mon Mar 26 03:50:29 PDT 2007
    
    
  
Frits van Bommel wrote:
> Walter Bright wrote:
>> Bug fixes, some enhancements.
>>
>> http://www.digitalmars.com/d/changelog.html
>>
>> http://ftp.digitalmars.com/dmd.1.010.zip
> 
> Looking through the new stdio code:
> 
> * Why aren't the internal DigitalMars/GCC stdio functions and their 
> aliases private?
Sloth.
> * These lines:
> ---
> if ((c2 == FGETWC(fp)) != -1 ||
>     c2 < 0xDC00 && c2 > 0xDFFF)
> {
>     StdioException("unpaired UTF-16 surrogate");
> }
> c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00);
> ---
> (found twice in readln, both in DigitalMars and in GCC/Windows code) 
> look suspicious to me, especially since I don't see any assignments to 
> (or other use of) 'c2'. Is this a reverse "'=' vs '==' in an condition" 
> bug?
Cripes, you're right. The '==' should be '='. Good catch!
    
    
More information about the Digitalmars-d-announce
mailing list