summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/InspectorFrontendClientLocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/inspector/InspectorFrontendClientLocal.cpp')
-rw-r--r--WebCore/inspector/InspectorFrontendClientLocal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/inspector/InspectorFrontendClientLocal.cpp b/WebCore/inspector/InspectorFrontendClientLocal.cpp
index 188566f..16a6a8b 100644
--- a/WebCore/inspector/InspectorFrontendClientLocal.cpp
+++ b/WebCore/inspector/InspectorFrontendClientLocal.cpp
@@ -148,7 +148,7 @@ void InspectorFrontendClientLocal::restoreAttachedWindowHeight()
String attachedHeight = m_inspectorController->setting(inspectorAttachedHeightName);
bool success = true;
int height = attachedHeight.toInt(&success);
- unsigned preferredHeight = success ? height : defaultAttachedHeight;
+ unsigned preferredHeight = success ? static_cast<unsigned>(height) : defaultAttachedHeight;
// This call might not go through (if the window starts out detached), but if the window is initially created attached,
// InspectorController::attachWindow is never called, so we need to make sure to set the attachedWindowHeight.