diff options
author | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-04-11 23:28:53 +0200 |
commit | 46c41e43690cba9bc1caff6a994bb6915df8a1b7 (patch) | |
tree | c96be792eceb1d189cdb5bcff6e1a06f9b51e76c /lib/wrappers/gtk/glib2.nim | |
parent | 3d696c3da53e5c41d839d8265fbc94f1c64980bb (diff) | |
download | Nim-46c41e43690cba9bc1caff6a994bb6915df8a1b7.tar.gz |
p[] instead of p^
Diffstat (limited to 'lib/wrappers/gtk/glib2.nim')
-rwxr-xr-x | lib/wrappers/gtk/glib2.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/wrappers/gtk/glib2.nim b/lib/wrappers/gtk/glib2.nim index a8fa6412d..3b40cd48f 100755 --- a/lib/wrappers/gtk/glib2.nim +++ b/lib/wrappers/gtk/glib2.nim @@ -3468,8 +3468,8 @@ when false: result = g_array_insert_vals(a, i, addr(v), 1) proc g_ptr_array_index*(parray: PGPtrArray, index: guint): gpointer = - result = cast[PGPointer](cast[int](parray ^. pdata) + - index * SizeOf(GPointer))^ + result = cast[PGPointer](cast[int](parray []. pdata) + + index * SizeOf(GPointer))[] proc G_THREAD_ERROR*(): TGQuark = result = g_thread_error_quark() @@ -3754,7 +3754,7 @@ proc TGIOChannel_set_is_seekable*(a: PGIOChannel, `is_seekable`: guint) = bm_TGIOChannel_is_seekable) proc utf8_next_char*(p: pguchar): pguchar = - result = cast[pguchar](cast[TAddress](p) + 1) # p + ord((g_utf8_skip + p^ )^ ) + result = cast[pguchar](cast[TAddress](p) + 1) # p + ord((g_utf8_skip + p[] )[] ) when false: proc GLIB_CHECK_VERSION*(major, minor, micro: guint): bool = |