Skip to content

First four bits of more1/2 doesn't store value above 07fff #1392

Closed
@mtwango

Description

@mtwango

When settings more1/2 higher 4 bits (more1h / more2h) these values doesn't store in more. I'll be using only more1 in example.

You can set more1h value from 0 to 65535 (0 - ffff), but only first half gets saved (0 - 7fff). I've tested it with loop and with save:

Loop (more1l is val-1):

val: 32763; more1h: 07ffb; more1l: 07ffa; more: 07ffb7ffa
val: 32764; more1h: 07ffc; more1l: 07ffb; more: 07ffc7ffb
val: 32765; more1h: 07ffd; more1l: 07ffc; more: 07ffd7ffc
val: 32766; more1h: 07ffe; more1l: 07ffd; more: 07ffe7ffd
val: 32767; more1h: 07fff; more1l: 07ffe; more: 07fff7ffe
val: 32768; more1h: 08000; more1l: 07fff; more: 07fff
val: 32769; more1h: 08001; more1l: 08000; more: 018000
val: 32770; more1h: 08002; more1l: 08001; more: 028001
val: 32771; more1h: 08003; more1l: 08002; more: 038002
val: 32772; more1h: 08004; more1l: 08003; more: 048003

Set value and check before and after save and restart:

more1h: 33000 (080e8)
more1l: 32999 (080e7)
more1: 0880e7 (0880e7)

Startup complete (items=6, chars=1, Accounts = 1)

more1h: 8 (08)
more1l: 32999 (080e7)
more1: 0880e7 (0880e7)

Test scenario:

  • Set more1 value above 07fffffff (for example 080018000)
  • check more1l, more1h and more
  • restart sphere
  • check more1l, more1h and more

Tested on branch main (rev 3941).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions