mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix two MSVC warnings. no_r=me.
This commit is contained in:
parent
faaaf8264b
commit
8ed74ae25b
@ -42,6 +42,12 @@
|
||||
|
||||
#include "jstl.h"
|
||||
|
||||
/* Silence dire "bugs in previous versions of MSVC have been fixed" warnings */
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4345)
|
||||
#endif
|
||||
|
||||
namespace js {
|
||||
|
||||
/*
|
||||
@ -786,4 +792,8 @@ Vector<T,N,AP>::replaceRawBuffer(T *p, size_t length)
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#endif /* jsvector_h_ */
|
||||
|
@ -84,7 +84,7 @@ pm_finalize(JSContext* cx, JSObject* obj)
|
||||
PerfMeasurement* p = GetPM(cx, obj, #name); \
|
||||
if (!p) \
|
||||
return JS_FALSE; \
|
||||
return JS_NewNumberValue(cx, p->name, vp); \
|
||||
return JS_NewNumberValue(cx, jsdouble(p->name), vp); \
|
||||
}
|
||||
|
||||
GETTER(cpu_cycles)
|
||||
|
Loading…
Reference in New Issue
Block a user