added missing () for old compilers 0.19.6

This commit is contained in:
Stefan Salewski 2019-06-05 17:42:07 +02:00
commit d0f0f35bb1
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Package # Package
version = "0.4.18" version = "0.4.20"
author = "Stefan Salewski" author = "Stefan Salewski"
description = "High level GObject-Introspection based GTK3 bindings" description = "High level GObject-Introspection based GTK3 bindings"
license = "MIT" license = "MIT"

View file

@ -1,5 +1,5 @@
# High level gobject-introspection based GTK3 bindings for the Nim programming language # High level gobject-introspection based GTK3 bindings for the Nim programming language
# v 0.4.18 2019-APR-27 # v 0.4.20 2019-JUN-05
# (c) S. Salewski 2018 # (c) S. Salewski 2018
# https://wiki.gnome.org/Projects/GObjectIntrospection # https://wiki.gnome.org/Projects/GObjectIntrospection
@ -733,7 +733,7 @@ proc writeMethod(info: GIBaseInfo; minfo: GIFunctionInfo; genProxy = false) =
else: else:
echo "Caution: No free/unref found for ", ' ', " (", sym, ')' # Mostly missing cairo functions... echo "Caution: No free/unref found for ", ' ', " (", sym, ')' # Mostly missing cairo functions...
else: else:
assert not fixedDestroyNames.contains(sym) assert (not fixedDestroyNames.contains(sym)) # missing outer () reported by Christian Ulrich, thanks.
freeMeName = $gBaseInfoGetName(freeMe) freeMeName = $gBaseInfoGetName(freeMe)
if sym == "g_closure_new_simple" or sym == "g_closure_new_object": freeMeName = "unref" # TODO GI bug? if sym == "g_closure_new_simple" or sym == "g_closure_new_object": freeMeName = "unref" # TODO GI bug?
assert(gCallableInfoGetCallerOwns(minfo) in {GITransfer.EVERYTHING, GITransfer.NOTHING}) assert(gCallableInfoGetCallerOwns(minfo) in {GITransfer.EVERYTHING, GITransfer.NOTHING})