summary refs log tree commit diff stats
path: root/tinyc
diff options
context:
space:
mode:
authorReimer Behrends <behrends@gmail.com>2014-11-01 04:07:42 +0100
committerReimer Behrends <behrends@gmail.com>2014-11-01 04:07:42 +0100
commit1fc8bab6433982611b8dc3585e65dbd7be946a89 (patch)
treef834da0b684ffeb3526c65dbb42b2fddc8a8d34a /tinyc
parent52a3acb0663a7d94c10f128a8ed3e1ff8e3b4be4 (diff)
downloadNim-1fc8bab6433982611b8dc3585e65dbd7be946a89.tar.gz
Reset location when creating a method dispatcher
When creating a method dispatcher, the location of the underlying
method was copied. Under some circumstances, the name of the
location (loc.r) was already initialized, in which case the
method dispatcher shared a name with one of the methods, leading
to a C compiler error. By setting loc.r to nil when copying
the dispatcher information from the original method, we ensure
that the dispatcher C function gets its proper name.
Diffstat (limited to 'tinyc')
0 files changed, 0 insertions, 0 deletions