Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1085 closed defect (fixed)

[PATCH] It's odd that the argument of sizeof() operator is &freqMhz

Reported by: Echelon9 Owned by:
Priority: Should Have Milestone: Alpha 9
Component: Core engine Keywords: pointers
Cc: Patch:

Description

Using the reference operator (&) is going to return the size of the pointer from sizeof(), rather than the size of the object.

Should be using the dereference operator (*).

Attachments (1)

t1085_wcpu-pointer-fix.patch (572 bytes ) - added by Echelon9 12 years ago.
Proposed fix for wcpu pointer handling

Download all attachments as: .zip

Change History (3)

by Echelon9, 12 years ago

Proposed fix for wcpu pointer handling

comment:1 by philip, 12 years ago

Resolution: fixed
Status: newclosed

(In [10845]) Fix #1085 (incorrect buffer size), based on patch by Echelon9

comment:2 by historic_bruno, 12 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.