[xdebug-dev] xdebug xdebug/xdebug_code_coverage.c - MFH: Fixed bug #418: compilation breaks with CodeWarrior for NetWare.

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Sat, 28 Mar 2009 20:37:26 +0100

Date: Sat Mar 28 20:37:26 CET 2009
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- MFH: Fixed bug #418: compilation breaks with CodeWarrior for NetWare.

Modified files:
           xdebug/xdebug_code_coverage.c (version: 1.32.2.15)

[FILE: /xdebug/xdebug_code_coverage.c]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.32.2.14
retrieving revision 1.32.2.15
diff -u -r1.32.2.14 -r1.32.2.15
--- xdebug/xdebug_code_coverage.c:1.32.2.14 Sat Mar 28 14:58:57 2009 GMT
+++ xdebug/xdebug_code_coverage.c Sat Mar 28 18:37:26 2009 GMT
@@ -237,7 +237,7 @@
         unsigned int i;
         xdebug_set *set = NULL;
 
- opa->reserved[XG(reserved_offset)] = 1;
+ opa->reserved[XG(reserved_offset)] = (void*) 1;
 
 #ifdef ZEND_ENGINE_2
         /* Check for abstract methods and simply return from this function in those
@@ -278,7 +278,7 @@
 
         new_filename = va_arg(args, char*);
         if (opa->type == ZEND_USER_FUNCTION) {
- if (opa->reserved[XG(reserved_offset)] != 1/* && opa->filename && strcmp(opa->filename, new_filename) == 0)*/) {
+ if (opa->reserved[XG(reserved_offset)] != (void*) 1 /* && opa->filename && strcmp(opa->filename, new_filename) == 0)*/) {
                         prefill_from_oparray(opa->filename, opa TSRMLS_CC);
                 }
         }
@@ -318,7 +318,7 @@
 
 void xdebug_prefill_code_coverage(zend_op_array *op_array TSRMLS_DC)
 {
- if (op_array->reserved[XG(reserved_offset)] != 1) {
+ if (op_array->reserved[XG(reserved_offset)] != (void*) 1) {
                 prefill_from_oparray(op_array->filename, op_array TSRMLS_CC);
         }
 
Received on Sat Mar 28 2009 - 20:37:29 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST