Closed Bug 920391 Opened 11 years ago Closed 11 years ago

B2G RIL: Buf.read/writeUint32 should be of signed int32 operation.

Categories

(Firefox OS Graveyard :: RIL, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: allstars.chh, Assigned: allstars.chh)

Details

Attachments

(1 file, 1 obsolete file)

The returned value from Buf.readUint32 should be signed,

Per ECMA-262 Edition 5, clause 11.7.1 The Left Shift operator , point 8
The result is a signed 32-bit integer.

So we should rename readUint32 to readInt32, same for write and readUint32List.
Summary: B2G RIL: Buf.read/writeUint32 should be signed int32 operation. → B2G RIL: Buf.read/writeUint32 should be of signed int32 operation.
Assignee: nobody → allstars.chh
Just had a quick scan, wow!  Will feedback later.
Attachment #810337 - Flags: review?(vyang) → review+
Attached patch PatchSplinter Review
covert to hg format.
Attachment #810337 - Attachment is obsolete: true
Attachment #810410 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/d364406e42ee
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: