diff options
author | Brian Paul <[email protected]> | 2005-11-25 17:07:10 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-25 17:07:10 +0000 |
commit | 024b5896f09650a599fdf60aa49aaf348941c3e5 (patch) | |
tree | 947736c0ce2697341f5355779010d3b7f8b2eccb /src/mesa/main/api_arrayelt.c | |
parent | 96bf6abb6615a9175f56a85322dd98160291274d (diff) |
use ADD_POINTERS macro instead of (uintptr_t) cast
Diffstat (limited to 'src/mesa/main/api_arrayelt.c')
-rw-r--r-- | src/mesa/main/api_arrayelt.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c index 41adc1d1d29..84df98dc89b 100644 --- a/src/mesa/main/api_arrayelt.c +++ b/src/mesa/main/api_arrayelt.c @@ -1,8 +1,8 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * - * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -773,17 +773,17 @@ void GLAPIENTRY _ae_loopback_array_elt( GLint elt ) /* generic attributes */ for (at = actx->attribs; at->func; at++) { - const GLubyte *src = at->array->BufferObj->Data - + (uintptr_t) at->array->Ptr - + elt * at->array->StrideB; + const GLubyte *src + = ADD_POINTERS(at->array->BufferObj->Data, at->array->Ptr) + + elt * at->array->StrideB; at->func( at->index, src ); } /* conventional arrays */ for (aa = actx->arrays; aa->offset != -1 ; aa++) { - const GLubyte *src = aa->array->BufferObj->Data - + (uintptr_t) aa->array->Ptr - + elt * aa->array->StrideB; + const GLubyte *src + = ADD_POINTERS(aa->array->BufferObj->Data, aa->array->Ptr) + + elt * aa->array->StrideB; CALL_by_offset( disp, (array_func), aa->offset, ((const void *) src) ); } |