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:
parent
c280d98e80
commit
96b61b8f4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user