瀏覽代碼

work around compiler bug

David Rose 15 年之前
父節點
當前提交
93583d77bc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      panda/src/pipeline/asyncTaskBase.cxx

+ 2 - 2
panda/src/pipeline/asyncTaskBase.cxx

@@ -54,8 +54,8 @@ record_task(Thread *current_thread) {
   // If the return value is other than NULL, someone else must have
   // If the return value is other than NULL, someone else must have
   // assigned the task first, in another thread.  That shouldn't be
   // assigned the task first, in another thread.  That shouldn't be
   // possible.
   // possible.
-  nassertv(current_thread->_current_task == this);
   nassertv(result == NULL);
   nassertv(result == NULL);
+  nassertv(current_thread->_current_task == this);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -75,6 +75,6 @@ clear_task(Thread *current_thread) {
   // If the return value is other than this, someone else must have
   // If the return value is other than this, someone else must have
   // assigned the task first, in another thread.  That shouldn't be
   // assigned the task first, in another thread.  That shouldn't be
   // possible.
   // possible.
-  nassertv(current_thread->_current_task == NULL);
   nassertv(result == this);
   nassertv(result == this);
+  nassertv(current_thread->_current_task == NULL);
 }
 }