]> granicus.if.org Git - libatomic_ops/commitdiff
Fix return type of AO_char/short/int_load_read() in read_ordered.h
authorIvan Maidanski <ivmai@mail.ru>
Mon, 7 Jan 2013 15:24:02 +0000 (19:24 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 11 Jan 2013 18:48:21 +0000 (22:48 +0400)
* src/atomic_ops/sysdeps/read_ordered.h (AO_char_load_read,
AO_short_load_read, AO_int_load_read): Change return type (and the
type of "result" local variable) from AO_t to the type matching the
name of the function (i.e., unsigned char/short/int, respectively).

src/atomic_ops/sysdeps/read_ordered.h

index 41ccd557ae4a60877eb3d084f4c049ead1db7625..986cd3a07789544c0f7460d2871bf32d37b27918 100644 (file)
@@ -49,10 +49,10 @@ AO_nop_read(void)
 #endif /* AO_HAVE_load */
 
 #ifdef AO_HAVE_char_load
-  AO_INLINE AO_t
+  AO_INLINE unsigned char
   AO_char_load_read(const volatile unsigned char *addr)
   {
-    AO_t result = AO_char_load(addr);
+    unsigned char result = AO_char_load(addr);
     AO_compiler_barrier();
     return result;
   }
@@ -63,10 +63,10 @@ AO_nop_read(void)
 #endif /* AO_HAVE_char_load */
 
 #ifdef AO_HAVE_short_load
-  AO_INLINE AO_t
+  AO_INLINE unsigned short
   AO_short_load_read(const volatile unsigned short *addr)
   {
-    AO_t result = AO_short_load(addr);
+    unsigned short result = AO_short_load(addr);
     AO_compiler_barrier();
     return result;
   }
@@ -77,10 +77,10 @@ AO_nop_read(void)
 #endif /* AO_HAVE_short_load */
 
 #ifdef AO_HAVE_int_load
-  AO_INLINE AO_t
+  AO_INLINE unsigned int
   AO_int_load_read(const volatile unsigned int *addr)
   {
-    AO_t result = AO_int_load(addr);
+    unsigned int result = AO_int_load(addr);
     AO_compiler_barrier();
     return result;
   }