2004-10-05 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 5 Oct 2004 15:08:45 +0000 (15:08 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 5 Oct 2004 15:08:45 +0000 (15:08 +0000)
* op-support.c (_gpgme_op_data_lookup): Use char pointer for
pointer arithmetic.

trunk/gpgme/ChangeLog
trunk/gpgme/op-support.c

index ea8efb4611ac3a81afc71d03dcb2323606dae0d7..7d6c5af65f03c15b5d62bb3742016d20b9bc1e08 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-05  Marcus Brinkmann  <marcus@g10code.de>
+
+       * op-support.c (_gpgme_op_data_lookup): Use char pointer for
+       pointer arithmetic.
+
 2004-09-30  Marcus Brinkmann  <marcus@g10code.de>
 
        * gpgme.m4: Implement the --api-version check.
index e406af9cf6323ee16ac04f3a015aba0069951553..be42e75c0197012dea060be6a09cf5d260b2967e 100644 (file)
@@ -50,7 +50,7 @@ _gpgme_op_data_lookup (gpgme_ctx_t ctx, ctx_op_data_id_t type, void **hook,
       data->next = ctx->op_data;
       data->type = type;
       data->cleanup = cleanup;
-      data->hook = ((void *) data) + sizeof (struct ctx_op_data);
+      data->hook = (void *) (((char *) data) + sizeof (struct ctx_op_data));
       ctx->op_data = data;
     }
   *hook = data->hook;