Permalink
Browse files

Fix another compiler error from clang

  • Loading branch information...
kevinmehall committed Dec 22, 2012
1 parent 57e98e3 commit 21219570376d47665b362dfe7431f5f74e10bde2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/usb.cc
View
@@ -94,7 +94,7 @@ namespace NodeUsb {
HandleScope scope;
// need libusb_device structure as first argument
- if (args.Length() != 1 || !args[0]->IsUint32() || !(((uint32_t)args[0]->Uint32Value() >= 0) && ((uint32_t)args[0]->Uint32Value() < 4))) {
+ if (args.Length() != 1 || !args[0]->IsUint32() || args[0]->Uint32Value() >= 4) {
THROW_BAD_ARGS("Usb::SetDebugLevel argument is invalid. [uint:[0-3]]!")
}

0 comments on commit 2121957

Please sign in to comment.