aboutsummaryrefslogtreecommitdiff
path: root/src/system_wrappers/source/sort.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/system_wrappers/source/sort.cc')
-rw-r--r--src/system_wrappers/source/sort.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/system_wrappers/source/sort.cc b/src/system_wrappers/source/sort.cc
index f44b644978..34aa4373ee 100644
--- a/src/system_wrappers/source/sort.cc
+++ b/src/system_wrappers/source/sort.cc
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
+ * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -412,8 +412,6 @@ namespace webrtc
case TYPE_Float64:
StdSort<double>(data, numOfElements);
break;
- default:
- return -1;
}
#endif
return 0;
@@ -543,9 +541,9 @@ namespace webrtc
return StdKeySort<float>(data, key, numOfElements, sizeOfElement);
case TYPE_Float64:
return StdKeySort<double>(data, key, numOfElements, sizeOfElement);
- default:
- return -1;
}
+ assert(false);
+ return -1;
#endif
}
} // namespace webrtc