From b4f81dd46f4be1527edc896f9949b423e35f9ac6 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <mani@lysator.liu.se> Date: Tue, 3 Feb 2004 21:40:13 +0100 Subject: [PATCH] Fixed a warning. Rev: src/opcodes.c:1.162 --- src/opcodes.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/opcodes.c b/src/opcodes.c index 189864dd8b..87e4dd6859 100644 --- a/src/opcodes.c +++ b/src/opcodes.c @@ -2,11 +2,11 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: opcodes.c,v 1.161 2003/11/19 17:19:29 grubba Exp $ +|| $Id: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $ */ #include "global.h" -RCSID("$Id: opcodes.c,v 1.161 2003/11/19 17:19:29 grubba Exp $"); +RCSID("$Id: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $"); #include "constants.h" #include "interpret.h" #include "opcodes.h" @@ -401,7 +401,8 @@ void init_opcodes(void) } #ifdef PIKE_USE_MACHINE_CODE - instrs_checksum = hashmem(instrs, sizeof(instrs), sizeof(instrs)); + instrs_checksum = hashmem((const unsigned char*)instrs, sizeof(instrs), + sizeof(instrs)); /* fprintf(stderr, "Instruction checksum: %d\n", instrs_checksum); */ #endif /* PIKE_USE_MACHINE_CODE */ -- GitLab