8240246: Avoid cast_to_oop from char*

Change type of gtest object from char[] to unsigned char[].

Reviewed-by: dholmes
This commit is contained in:
Kim Barrett 2020-03-02 14:45:52 -05:00
parent c280d98e80
commit 96b61b8f4b

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -26,7 +26,7 @@
#include "unittest.hpp"
#include "utilities/globalDefinitions.hpp"
static char memory[32];
static unsigned char memory[32];
oop fake_object() {
return cast_to_oop(memory);