Skip to content

Commit 67e9d0e

Browse files
committed
Fix more clang warnings
1 parent 7083450 commit 67e9d0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ast_values.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace Sass {
2929
long index = sassIndex->assertNumber(logger, name)->assertInt(logger, sassIndex->pstate(), name);
3030
if (index == 0) throw Exception::SassScriptException2(
3131
"List index may not be 0.", logger, sassIndex->pstate(), name);
32-
if ((size_t)abs(index) > lengthAsList()) {
32+
if ((size_t)std::abs(index) > lengthAsList()) {
3333
sass::sstream strm;
3434
strm << "Invalid index " << index << " for a list ";
3535
strm << "with " << lengthAsList() << " elements.";

src/environment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace std {
3434
template <>
35-
class hash<Sass::EnvString> {
35+
struct hash<Sass::EnvString> {
3636
public:
3737
inline size_t operator()(const Sass::EnvString& name) const
3838
{

0 commit comments

Comments
 (0)