فهرست منبع

video_core/macro_interpreter: Remove assertion within FetchParameter()

We can just use .at(), which essentially does the same thing, but with
less code.
Lioncash 7 سال پیش
والد
کامیت
00e7190e29
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/video_core/macro_interpreter.cpp

+ 1 - 2
src/video_core/macro_interpreter.cpp

@@ -223,8 +223,7 @@ void MacroInterpreter::ProcessResult(ResultOperation operation, u32 reg, u32 res
 }
 }
 
 
 u32 MacroInterpreter::FetchParameter() {
 u32 MacroInterpreter::FetchParameter() {
-    ASSERT(next_parameter_index < parameters.size());
-    return parameters[next_parameter_index++];
+    return parameters.at(next_parameter_index++);
 }
 }
 
 
 u32 MacroInterpreter::GetRegister(u32 register_id) const {
 u32 MacroInterpreter::GetRegister(u32 register_id) const {