summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches/patch-ch
blob: 5883cc66f16d8b6588a2a5c7e1a8a7f2b65e4972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ch,v 1.1 2010/08/09 13:21:07 tsutsui Exp $

--- src/tools/qstring.h.orig	2007-02-02 14:01:05.000000000 +0000
+++ src/tools/qstring.h
@@ -194,7 +194,7 @@
     char latin1() const { return ucs > 0xff ? 0 : (char) ucs; }
     ushort unicode() const { return ucs; }
 #ifdef Q_NO_PACKED_REFERENCE
-    ushort &unicode() { return *(&ucs); }
+    ushort &unicode() { return *(ushort *)(&ucs); }
 #else
     ushort &unicode() { return ucs; }
 #endif