Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion r581 committed - [Author: gblevins]...

Received: by 10.58.202.67 with SMTP id kg3mr6050642vec.12.1349899237320;
        Wed, 10 Oct 2012 13:00:37 -0700 (PDT)
X-BeenThere: google-toolbox-for-mac@googlegroups.com
Received: by 10.52.34.13 with SMTP id v13ls779926vdi.3.gmail; Wed, 10 Oct 2012
 13:00:36 -0700 (PDT)
Received: by 10.52.91.131 with SMTP id ce3mr4060493vdb.1.1349899236532;
        Wed, 10 Oct 2012 13:00:36 -0700 (PDT)
Received: by 10.52.91.131 with SMTP id ce3mr4060492vdb.1.1349899236520;
        Wed, 10 Oct 2012 13:00:36 -0700 (PDT)
Return-Path: <35NN1UBYOAOsTbbTYR-gbbYObk-Sbe-ZNPTbbTYRPbQR....@codesite.bounces.google.com>
Received: from mail-vb0-f75.google.com (mail-vb0-f75.google.com [209.85.212.75])
        by gmr-mx.google.com with ESMTPS id bn19si169728vdb.0.2012.10.10.13.00.36
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 10 Oct 2012 13:00:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of 35NN1UBYOAOsTbbTYR-gbbYObk-Sbe-ZNPTbbTYRPbQR....@codesite.bounces.google.com designates 209.85.212.75 as permitted sender) client-ip=209.85.212.75;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of 35NN1UBYOAOsTbbTYR-gbbYObk-Sbe-ZNPTbbTYRPbQR....@codesite.bounces.google.com designates 209.85.212.75 as permitted sender) smtp.mail=35NN1UBYOAOsTbbTYR-gbbYObk-Sbe-ZNPTbbTYRPbQR....@codesite.bounces.google.com
Received: by mail-vb0-f75.google.com with SMTP id fr13so3367vbb.0
        for <google-toolbox-for-mac@googlegroups.com>; Wed, 10 Oct 2012 13:00:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.224.117.143 with SMTP id r15mr17627801qaq.1.1349899236415;
 Wed, 10 Oct 2012 13:00:36 -0700 (PDT)
X-Generated-By: Google Code
Message-ID: <20cf3074d904781a2004cbb9e81e@google.com>
Date: Wed, 10 Oct 2012 20:00:36 +0000
Subject: [google-toolbox-for-mac] r581 committed - [Author: gblevins]...
From: google-toolbox-for-...@googlecode.com
To: google-toolbox-for-mac@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes

Revision: 581
Author:   gtm.daemon
Date:     Wed Oct 10 13:00:16 2012
Log:      [Author: gblevins]

Add explicit conversion to unichar so clang doesn't complain about an  
implicit conversion that loses percision.

R=thomasvl
APPROVED=thomasvl
DELTA=2  (0 added, 0 deleted, 2 changed)
http://code.google.com/p/google-toolbox-for-mac/source/detail?r=581

Modified:
  /trunk/Foundation/GTMNSString+HTML.m

=======================================
--- /trunk/Foundation/GTMNSString+HTML.m	Fri Jun 13 12:21:50 2008
+++ /trunk/Foundation/GTMNSString+HTML.m	Wed Oct 10 13:00:16 2012
@@ -484,7 +484,7 @@
                value < USHRT_MAX &&
                value > 0
                && [scanner scanLocation] == length - 4) {
-            unichar uchar = value;
+            unichar uchar = (unichar)value;
              NSString *charString = [NSString stringWithCharacters:&uchar  
length:1];
              [finalString replaceCharactersInRange:escapeRange  
withString:charString];
            }
@@ -498,7 +498,7 @@
                value < USHRT_MAX &&
                value > 0
                && [scanner scanLocation] == length - 3) {
-            unichar uchar = value;
+            unichar uchar = (unichar)value;
              NSString *charString = [NSString stringWithCharacters:&uchar  
length:1];
              [finalString replaceCharactersInRange:escapeRange  
withString:charString];
            }