Last Comment Bug 776447 - layout/xul/base/src/nsSliderFrame.cpp(595) : warning C4305: 'return' : truncation from 'nsresult' to 'bool'
: layout/xul/base/src/nsSliderFrame.cpp(595) : warning C4305: 'return' : trunca...
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: XUL (show other bugs)
: Trunk
: All All
: -- normal (vote)
: mozilla17
Assigned To: Makoto Kato [:m_kato]
:
:
Mentors:
Depends on:
Blocks: 732052
  Show dependency treegraph
 
Reported: 2012-07-23 00:52 PDT by Makoto Kato [:m_kato]
Modified: 2012-07-24 02:57 PDT (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
fix (982 bytes, patch)
2012-07-23 00:55 PDT, Makoto Kato [:m_kato]
enndeakin: review+
Details | Diff | Splinter Review

Description Makoto Kato [:m_kato] 2012-07-23 00:52:15 PDT
don't use NS_ENSURE_ARG_POINTER for boolean.  NS_ERROR_xxxx will convert to true.
Comment 1 Makoto Kato [:m_kato] 2012-07-23 00:55:24 PDT
Created attachment 644856 [details] [diff] [review]
fix
Comment 2 Makoto Kato [:m_kato] 2012-07-23 00:56:25 PDT
Comment on attachment 644856 [details] [diff] [review]
fix

This is a regression by bug 732052.  return type is bool, so we should not use NS_ENSURE_ARG_POINTER.
Comment 3 Neil Deakin (away until Oct 3) 2012-07-23 06:54:16 PDT
Comment on attachment 644856 [details] [diff] [review]
fix

Good catch. Thanks.
Comment 5 Ed Morley [:emorley] 2012-07-24 02:57:10 PDT
https://hg.mozilla.org/mozilla-central/rev/36daa5515bc8

Note You need to log in before you can comment on or make changes to this bug.