fix incrementing on 32-bit

This commit is contained in:
Anatol Belski 2015-10-04 12:16:54 +02:00
parent ba4a85b012
commit c97198e181

View file

@ -1804,7 +1804,11 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
ZCSG(hits)++; /* TBFixed: may lose one hit */ ZCSG(hits)++; /* TBFixed: may lose one hit */
persistent_script->dynamic_members.hits++; /* see above */ persistent_script->dynamic_members.hits++; /* see above */
#else #else
INCREMENT(hits); #ifdef _M_X64
InterlockedIncrement64(&ZCSG(hits));
#else
InterlockedIncrement(&ZCSG(hits));
#endif
InterlockedIncrement64(&persistent_script->dynamic_members.hits); InterlockedIncrement64(&persistent_script->dynamic_members.hits);
#endif #endif