Skip to content

Commit

Permalink
8312190: Fix c++11-narrowing warnings in hotspot code
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, kbarrett
  • Loading branch information
djelinski committed Jul 19, 2023
1 parent 82612e2 commit f677793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/classfile/verificationType.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2023, 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
Expand Down Expand Up @@ -31,7 +31,7 @@
#include "runtime/handles.hpp"
#include "runtime/signature.hpp"

enum {
enum : uint {
// As specified in the JVM spec
ITEM_Top = 0,
ITEM_Integer = 1,
Expand Down Expand Up @@ -67,7 +67,7 @@ class VerificationType {
};

// Enum for the _data field
enum {
enum : uint {
// Bottom two bits determine if the type is a reference, primitive,
// uninitialized or a query-type.
TypeMask = 0x00000003,
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/utilities/debug.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ do {


// types of VM error - originally in vmError.hpp
enum VMErrorType {
enum VMErrorType : unsigned int {
INTERNAL_ERROR = 0xe0000000,
OOM_MALLOC_ERROR = 0xe0000001,
OOM_MMAP_ERROR = 0xe0000002,
Expand Down

1 comment on commit f677793

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.