Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: Source/modules/webaudio/AudioContext.h

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/webaudio/AudioContext.h
diff --git a/Source/modules/webaudio/AudioContext.h b/Source/modules/webaudio/AudioContext.h
index 09890bafcc05c7c6b153814fcdcccff5c4ea67c0..ed9b76b54d48ed8e1b9176f8f4f1df22a7c68dd0 100644
--- a/Source/modules/webaudio/AudioContext.h
+++ b/Source/modules/webaudio/AudioContext.h
@@ -103,7 +103,8 @@ public:
size_t currentSampleFrame() const { return m_destinationNode->currentSampleFrame(); }
double currentTime() const { return m_destinationNode->currentTime(); }
float sampleRate() const { return m_destinationNode->sampleRate(); }
- unsigned long activeSourceCount() const { return static_cast<unsigned long>(m_activeSourceCount); }
+ // FIXME: Is this cast safe (what if m_activeSourceCount is negative...)
+ unsigned activeSourceCount() const { return static_cast<unsigned>(m_activeSourceCount); }
void incrementActiveSourceCount();
void decrementActiveSourceCount();
« no previous file with comments | « Source/modules/speech/SpeechSynthesisEvent.cpp ('k') | Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698