From 454324f43e021027c5254a62de5e081792efc3fc Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Sun, 7 Dec 2008 23:01:35 -0500 Subject: Fix the compilation warning of uprobe in FC9. --- runtime/uprobes2/uprobes_x86.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/uprobes2') diff --git a/runtime/uprobes2/uprobes_x86.c b/runtime/uprobes2/uprobes_x86.c index 45289564..effb7444 100644 --- a/runtime/uprobes2/uprobes_x86.c +++ b/runtime/uprobes2/uprobes_x86.c @@ -417,10 +417,10 @@ static int handle_riprel_insn(struct uprobe_probept *ppt) opcode1 = *insn; if (opcode1 == 0x0f) { /* Two-byte opcode. */ opcode2 = *++insn; - need_modrm = test_bit(opcode2, twobyte_has_modrm); + need_modrm = test_bit(opcode2, (unsigned long*)twobyte_has_modrm); } else { /* One-byte opcode. */ opcode2 = 0x0; - need_modrm = test_bit(opcode1, onebyte_has_modrm); + need_modrm = test_bit(opcode1, (unsigned long*)onebyte_has_modrm); } if (!need_modrm) -- cgit