Skip to content

Gci64Bit>>oopForChar: incorrect #1

@dalehenrich

Description

@dalehenrich

Hey Dale,

yes I know, I'm still stuck with GemTolls and not using tODE…
but…

shouldn't

Gci64Bit>>oopForChar: aCharacter

    | ans |
    ans := (((aCharacter asciiValue bitAnd: 16rFFFF) << 16r08) bitOr: 16r1C) asOop.
    ^ans

be actually

Gci64Bit>>oopForChar: aCharacter

    | ans |
    ans := self oopTypeFromInteger: (((aCharacter asciiValue bitAnd: 16rFFFF) << 16r08) bitOr: 16r1C).
    ^ans

This fixes numerous dNUs SmallInteger doesNotUnderstand: #asOop …

Best
-Tobias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions