2013-09-26 17:14:40 +02:00

14 lines
457 B
Plaintext

$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