From 7a9c6609630ad22109a67c9d504a6458080988b9 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 12 Aug 2009 09:32:54 +0200 Subject: Fix compilation on 64-bit machines. On 64-bit machines the construction of QVariant from intptr_t is ambigious as it could be void* or ulonglong. The documentation for the debugger extension on the other hand is clear that it should be a qint64. An explicit construction of a qint64 fixes it. Reviewed-by: Jedrzej Nowacki --- src/script/api/qscriptengineagent_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/api/qscriptengineagent_p.h b/src/script/api/qscriptengineagent_p.h index da3eef5..20b4925 100644 --- a/src/script/api/qscriptengineagent_p.h +++ b/src/script/api/qscriptengineagent_p.h @@ -114,7 +114,7 @@ public: virtual void didReachBreakpoint(const JSC::DebuggerCallFrame&, intptr_t sourceID, int lineno, int column) { QList args; - args << sourceID << lineno << column; + args << qint64(sourceID) << lineno << column; if (q_ptr->supportsExtension(QScriptEngineAgent::DebuggerInvocationRequest)) q_ptr->extension(QScriptEngineAgent::DebuggerInvocationRequest, args); }; -- cgit v0.12