Skip to content

src: fix compiler warning in smalloc.cc#1055

Closed
bnoordhuis wants to merge 1 commit intonodejs:v1.xfrom
bnoordhuis:fix-compiler-warning
Closed

src: fix compiler warning in smalloc.cc#1055
bnoordhuis wants to merge 1 commit intonodejs:v1.xfrom
bnoordhuis:fix-compiler-warning

Conversation

@bnoordhuis
Copy link
Copy Markdown
Member

Fix the following compiler warning by static_casting the enum values
to an uint32_t:

../src/smalloc.cc: In function 'void
node::smalloc::Initialize(v8::Handle<v8::Object>,
                          v8::Handle<v8::Value>,
                          v8::Handle<v8::Context>)':
../src/smalloc.cc:601:203: warning: enumeral and non-enumeral type
in conditional expression
    EXTERNAL_ARRAY_TYPES(V)

R=@vkurchatkin

Fix the following compiler warning by static_casting the enum values
to an uint32_t:

    ../src/smalloc.cc: In function 'void
    node::smalloc::Initialize(v8::Handle<v8::Object>,
                              v8::Handle<v8::Value>,
                              v8::Handle<v8::Context>)':
    ../src/smalloc.cc:601:203: warning: enumeral and non-enumeral type
    in conditional expression
        EXTERNAL_ARRAY_TYPES(V)
bnoordhuis added a commit that referenced this pull request Mar 4, 2015
Fix the following compiler warning by static_casting the enum values
to an uint32_t:

    ../src/smalloc.cc: In function 'void
    node::smalloc::Initialize(v8::Handle<v8::Object>,
                              v8::Handle<v8::Value>,
                              v8::Handle<v8::Context>)':
    ../src/smalloc.cc:601:203: warning: enumeral and non-enumeral type
    in conditional expression
        EXTERNAL_ARRAY_TYPES(V)

PR-URL: #1055
Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
@vkurchatkin
Copy link
Copy Markdown
Contributor

Thanks, landed in fb284e2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants