Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Prevent out_of_range exception on windows
Browse files Browse the repository at this point in the history
Auditors: @bridiver, @bbondy
  • Loading branch information
darkdh committed Sep 21, 2016
1 parent 96a5ffa commit 0ac2a5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom/utility/importer/chrome_importer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void ChromeImporter::RecursiveReadBookmarksFolder(
entry.path = parent_path;
entry.title = name;
entry.creation_time =
base::Time::FromDoubleT(chromeTimeToDouble(std::stol(date_added)));
base::Time::FromDoubleT(chromeTimeToDouble(std::stoll(date_added)));
bookmarks->push_back(entry);

std::vector<base::string16> path = parent_path;
Expand All @@ -211,7 +211,7 @@ void ChromeImporter::RecursiveReadBookmarksFolder(
entry.path = parent_path;
entry.title = name;
entry.creation_time =
base::Time::FromDoubleT(chromeTimeToDouble(std::stol(date_added)));
base::Time::FromDoubleT(chromeTimeToDouble(std::stoll(date_added)));
bookmarks->push_back(entry);
}
}
Expand Down

1 comment on commit 0ac2a5c

@bbondy
Copy link
Member

@bbondy bbondy commented on 0ac2a5c Sep 21, 2016

Choose a reason for hiding this comment

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

wow only 2 char fix 👍

Please sign in to comment.