diff options
author | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-13 15:06:04 +0000 |
---|---|---|
committer | Antonio Cunei <antonio.cunei@epfl.ch> | 2008-10-13 15:06:04 +0000 |
commit | ea2ceda18b13f083f5b300e1fbe542fc102fa3eb (patch) | |
tree | 82edb340016175187de43905a9cd45c6f8728cf7 | |
parent | b98da683a907a46a6fa409c4ff3a611fc7328493 (diff) | |
download | scala-ea2ceda18b13f083f5b300e1fbe542fc102fa3eb.tar.gz scala-ea2ceda18b13f083f5b300e1fbe542fc102fa3eb.tar.bz2 scala-ea2ceda18b13f083f5b300e1fbe542fc102fa3eb.zip |
fix, as suggested in #1418
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala index 6606214970..67cb5e42e4 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala @@ -136,11 +136,11 @@ abstract class ICodeReader extends ClassfileParser { import ch.epfl.lamp.fjbg.JAccessFlags._ var res = 0L - if ((flags & ACC_PRIVATE) == 1) res |= Flags.PRIVATE - if ((flags & ACC_PROTECTED) == 1) res |= Flags.PROTECTED - if ((flags & ACC_FINAL) == 1) res |= Flags.FINAL - if ((flags & ACC_ABSTRACT) == 1) res |= Flags.DEFERRED - if ((flags & ACC_SYNTHETIC) == 1) res |= Flags.SYNTHETIC + if ((flags & ACC_PRIVATE) != 0) res |= Flags.PRIVATE + if ((flags & ACC_PROTECTED) != 0) res |= Flags.PROTECTED + if ((flags & ACC_FINAL) != 0) res |= Flags.FINAL + if ((flags & ACC_ABSTRACT) != 0) res |= Flags.DEFERRED + if ((flags & ACC_SYNTHETIC) != 0) res |= Flags.SYNTHETIC res } |