Skip to content

clib cBitwiseOp Function #3

@msalaba01

Description

@msalaba01

It seems you commented out code to set iDiv

cLib/clib.psc

Line 1834 in 5993fc3

endif; Init divisor to loop from MSBsiDiv = Math.Pow(2, (iBits - 1)) As Int

Later in the function you are dividing by iDiv which I assume would throw a bunch of errors.
I think you intended it to be

endif    ; Init divisor to loop from MSBs
iDiv = Math.Pow(2, (iBits - 1)) As Int

You could also move L1812 to L1835
Int iDiv = Math.Pow(2, (iBits - 1)) As Int
You don't need to declare iDiv until after you check iRes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions