summaryrefslogtreecommitdiff
path: root/myisam/myisampack.c
diff options
context:
space:
mode:
authorunknown <lenz@mysql.com>2004-10-27 21:51:27 +0200
committerunknown <lenz@mysql.com>2004-10-27 21:51:27 +0200
commitf4b0f729aada4e7a71b781c538cec9a95affe452 (patch)
treeef3ff402e3597d2f3413b6d105d438f718b8f7a8 /myisam/myisampack.c
parent89dce2fb8c299e6a99c953e9a650ec7bd4409bcb (diff)
downloadmariadb-git-f4b0f729aada4e7a71b781c538cec9a95affe452.tar.gz
- Applied some Windows portability fixes for myisampack.c and sql_handler.ccmysql-4.0.22
(backports from fixes made in 4.1) myisam/myisampack.c: - replaced "1ULL" with "((ulonglong)1)" to resolve a compile error on Windows sql/sql_handler.cc: - removed some unused variables - added a (byte*) cast to fix a compile error on Windows (backport of a fix made in 4.1)
Diffstat (limited to 'myisam/myisampack.c')
-rw-r--r--myisam/myisampack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/myisampack.c b/myisam/myisampack.c
index 0dde1916f03..9f4e3bde65a 100644
--- a/myisam/myisampack.c
+++ b/myisam/myisampack.c
@@ -2047,7 +2047,7 @@ static int save_state(MI_INFO *isam_file,PACK_MRG_INFO *mrg,my_off_t new_length,
share->state.dellink= HA_OFFSET_ERROR;
share->state.split=(ha_rows) mrg->records;
share->state.version=(ulong) time((time_t*) 0);
- if (share->state.key_map != (1ULL << share->base.keys) - 1)
+ if (share->state.key_map != (((ulonglong)1) << share->base.keys) - 1)
{
/*
Some indexes are disabled, cannot use current key_file_length value