Fix after manual merge.

storage/heap/hp_write.c:
  Fix after manial merge: do cast _after_ pointer substruction.
This commit is contained in:
unknown 2007-01-09 13:07:39 +03:00
parent ca83b54732
commit c12dfbe81d

View file

@ -68,7 +68,7 @@ int heap_write(HP_INFO *info, const byte *record)
err:
if (my_errno == HA_ERR_FOUND_DUPP_KEY)
DBUG_PRINT("info",("Duplicate key: %d", (int) keydef - share->keydef));
DBUG_PRINT("info",("Duplicate key: %d", (int) (keydef - share->keydef)));
info->errkey= keydef - share->keydef;
/*
We don't need to delete non-inserted key from rb-tree. Also, if