Closed
Bug 650834
Opened 13 years ago
Closed 13 years ago
Android debug build bustage
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dougt, Assigned: derf)
References
Details
Attachments
(1 file, 1 obsolete file)
1.41 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
/builds/mozilla-central/gfx/ycbcr/ycbcr_to_rgb565.cpp: In function 'void mozilla::gfx::ScaleYCbCrToRGB565(const PRUint8*, const PRUint8*, const PRUint8*, PRUint8*, int, int, int, int, int, int, int, int, int, mozilla::gfx::YUVType, mozilla::gfx::ScaleFilter)': /builds/mozilla-central/gfx/ycbcr/ycbcr_to_rgb565.cpp:379: error: invalid operands of types 'const PRUint8*' and 'int' to binary 'operator&' /builds/mozilla-central/gfx/ycbcr/ycbcr_to_rgb565.cpp:379: error: invalid operands of types 'const PRUint8*' and 'int' to binary 'operator&' /builds/mozilla-central/gfx/ycbcr/ycbcr_to_rgb565.cpp:379: error: invalid operands of types 'const PRUint8*' and 'int' to binary 'operator&' make[6]: *** [ycbcr_to_rgb565.o] Error 1 Usnig arm-eabi-gcc (GCC) 4.4.0 (ndk-4c)
Reporter | ||
Updated•13 years ago
|
Assignee: nobody → tterribe
Updated•13 years ago
|
OS: Linux → Android
Hardware: x86_64 → ARM
Assignee | ||
Comment 2•13 years ago
|
||
This was meant to convert a pointer to a ptrdiff_t by taking its difference from NULL, but without the explicit casts it was just treating NULL as 0, yielding the original pointer back.
Attachment #526786 -
Flags: review?(doug.turner)
Reporter | ||
Comment 3•13 years ago
|
||
Comment on attachment 526786 [details] [diff] [review] Add casts to pointer differences in assertion not a patch.
Assignee | ||
Comment 4•13 years ago
|
||
Huh, I must have somehow clicked on aclocal.m4 instead. Let me try this again.
Attachment #526786 -
Attachment is obsolete: true
Attachment #526786 -
Flags: review?(doug.turner)
Attachment #526841 -
Flags: review?(doug.turner)
Reporter | ||
Comment 5•13 years ago
|
||
Comment on attachment 526841 [details] [diff] [review] Add casts to pointer differences in assertion Does it make sense to define |(PRUint8 *)NULL)&15| somewhere. either way: r=wfm
Attachment #526841 -
Flags: review?(doug.turner) → review+
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to comment #5) > Does it make sense to define |(PRUint8 *)NULL)&15| somewhere. either way: Maybe! For all I know there already is a macro for these kinds of tests. If so, where would it go? (so I can look to see if it's already there)
Reporter | ||
Comment 7•13 years ago
|
||
no idea. maybe the top of the file for now?
Assignee | ||
Comment 8•13 years ago
|
||
It looks like there are currently at least five in the tree: jpeg (IS_ALIGNED), jemalloc (ALIGN_ADDR2OFFSET), libffi (is_aligned), sqlite (EIGHT_BYTE_ALIGNMENT), freetype2 (GXV_32BIT_ALIGNMENT_VALIDATE). But none of them at the top level where everyone could use them. Given that, I don't think it's worth it for two lines in an assert. It's better to see what the code is actually doing, where it's doing it.
Reporter | ||
Comment 9•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/deee3852caaf
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•