diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-04-06 21:28:43 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2019-04-06 21:28:43 +0000 |
commit | 16c4b2098bf51b2562fb33f3258b13220a6ed06f (patch) | |
tree | e2bf43d209c584df5420ef966a9643ca9fe83045 /compiler/jvm | |
parent | 6fb791fbff85c479f58a24a5819595b1d9c7376f (diff) | |
download | fpc-16c4b2098bf51b2562fb33f3258b13220a6ed06f.tar.gz |
* added extra header to ppu inside a subsection, so we won't run into
trouble when the ppu version hits 255
* also moved several ppu flags to a set inside that section
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@41846 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/jvm')
-rw-r--r-- | compiler/jvm/njvmutil.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jvm/njvmutil.pas b/compiler/jvm/njvmutil.pas index c412ec43e1..bc9cdad852 100644 --- a/compiler/jvm/njvmutil.pas +++ b/compiler/jvm/njvmutil.pas @@ -404,7 +404,7 @@ implementation { class constructors are automatically handled by the JVM } { call the unit init code and make it external } - if (hp.u.flags and (uf_init or uf_finalize))<>0 then + if (hp.u.moduleflags*[mf_init,mf_finalize])<>[] then begin { trigger init code by referencing the class representing the unit; if necessary, it will register the fini code to run on |