Bug in Omnibase

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Ted
Reply | Threaded
Open this post in threaded view
|

Bug in Omnibase

Ted
Hi David,

ScaledDecimal class>>odbDeserialize: calls #numerator:denominator:scale:
  which doesn't exist. I modified it into:

odbDeserialize: deserializer
        | stream |
        #tbModified.
        stream := deserializer stream.
        ^self newFromNumber: (Fraction numerator: stream getInteger
denominator: stream getInteger)
                scale: stream getInteger

I don't know whether you can include it into a OA live update?

Ted


Reply | Threaded
Open this post in threaded view
|

Re: Bug in Omnibase

David Gorisek-5
Thanks, the #numerator:denominator:scale: is part of our Dialect
abstraction layer so I didn't noticed it.

Best regards,

David Gorisek


Ted wrote:

> Hi David,
>
> ScaledDecimal class>>odbDeserialize: calls #numerator:denominator:scale:
>  which doesn't exist. I modified it into:
>
> odbDeserialize: deserializer
>     | stream |
>     #tbModified.
>     stream := deserializer stream.
>     ^self newFromNumber: (Fraction numerator: stream getInteger
> denominator: stream getInteger)
>         scale: stream getInteger
>
> I don't know whether you can include it into a OA live update?
>
> Ted